python-3.x - 无法在 Python (pip) 中安装包
问题描述
主机是一个孤立的,没有互联网连接。我已经下载了所有必要的软件包并使用 pip 安装了它们。但是在做最后一个时,我遇到了错误。任何人都可以帮助我吗?
ERROR: No matching distribution found for setuptools>=40.8.0 while I have setuptools 45.2.0
installed already.
C:\Annada\Python\package>pip list|findstr setuptools
setuptools 45.2.0
C:\Annada\Python\package>pip install grip_tools-0.1.9.tar.gz
Processing c:\annada\python\package\grip_tools-0.1.9.tar.gz
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\prasa502\appdata\local\programs\python\python38-32\python.exe' 'c:\users\prasa502\appdata\local\programs\python\python38-32\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\prasa502\AppData\Local\Temp\pip-build-env-p4z1oajg\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel
cwd: None
Complete output (7 lines):
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x039EAEB0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x039EA730>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x039EA6B8>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x039EAFE8>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x039EAE38>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
ERROR: No matching distribution found for setuptools>=40.8.0
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\prasa502\appdata\local\programs\python\python38-32\python.exe' 'c:\users\prasa502\appdata\local\programs\python\python38-32\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\prasa502\AppData\Local\Temp\pip-build-env-p4z1oajg\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel Check the logs for full command output.
解决方案
推荐阅读
- java - 使用 SunPKCS11 连接到 HSM 时出现异常
- reactjs - 存储状态更改时对 redux 的工作做出意外反应
- html - 如何在 iframe 上创建模糊?
- c - 用 c 实现终端命令
- c - C - 最后捕获的数据项未写入文件
- serial-port - QEMU 不创建第二个串行端口(Ubuntu x86-64 来宾和主机)
- c# - 替换与模式匹配的部分字符串
- graph - 如何用垂直线连接两个绘图函数(使用 GNUPLOT)?
- php - find() 和 fetchAll() 在 Zend Framework 1 中不起作用
- android - activity_main 布局不加载设计,不显示任何内容