由于服务器无法连接互联网,所以我不能只做
pip install waitress
很简单。
我尝试从 github(https://github.com/Pylons/waitress) 下载并解压缩包,并尝试使用 pip install .
或 conda install *
,但这是错误报告。
(base) [root@localhost waitress-2.0.0]# pip install .
Processing /usr/local/python3/waitress-2.0.0
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /root/anaconda3/bin/python /root/anaconda3/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-5_heyly2/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 41'
cwd: None
Complete output (7 lines):
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f6b89219460>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/setuptools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f6b89219670>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/setuptools/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f6b89219850>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/setuptools/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f6b89219a30>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/setuptools/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f6b89219c10>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/setuptools/
ERROR: Could not find a version that satisfies the requirement setuptools>=41
ERROR: No matching distribution found for setuptools>=41
----------------------------------------
WARNING: Discarding file:///usr/local/python3/waitress-2.0.0. Command errored out with exit status 1: /root/anaconda3/bin/python /root/anaconda3/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-5_heyly2/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 41' Check the logs for full command output.
ERROR: Command errored out with exit status 1: /root/anaconda3/bin/python /root/anaconda3/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-5_heyly2/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 41' Check the logs for full command output.
(base) [root@localhost waitress-2.0.0]#
如何成功安装包服务员?