首页 > 解决方案 > 无法在 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.

标签: python-3.xpipinstallation

解决方案


推荐阅读