我试过了pip install pyinstaller
,但一直出现如下错误,我在网上搜索了很多次也没找到问题所在。有人能帮忙吗?
C:\Users\{}\Documents\1Work\PCT\ExcelDiff>pip install pyinstaller
Collecting pyinstaller
Using cached https://files.pythonhosted.org/packages/03/32/0e0de593f129bf1d1e77eed562496d154ef4460fd5cecfd78612ef39a0cc/PyInstaller-3.4.tar.gz
Installing build dependencies ... error
Complete output from command c:\users\{}\appdata\local\programs\python\python36-32\python.exe c:\users\{}\appdata\local\programs\python\python36-32\lib\site-packages\pip install --ignore-installed --no-user --prefix C:\Users\linlinho\AppData\Local\Temp\pip-build-env-pz5b1j1k\overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel:
Collecting setuptools
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x070D82D0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x070DCC10>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x070DCC30>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x070DCE50>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x070DCD30>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
Could not find a version that satisfies the requirement setuptools (from versions: )
No matching distribution found for setuptools
答案1
在pyinstaller
安装过程中,它会尝试下载该包,setuptools
因为它是一个依赖项。
先试试pip install setuptools
。