【发布时间】:2018-08-17 23:18:22
【问题描述】:
我可以尝试使用 pip 在 python 3.6.4 中安装软件包,但我发现了很多错误。我也尝试像这样的命令:easy_install, pip install --upgrade --force-reinstall <package>, pip install --ignore-installed <package>。错误结果总是一样的:
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000002E91DCF04E0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/<package>/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000002E91DCF0BE0>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed',)': /simple/<package>/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000002E91DCF0748>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/<package>/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000002E91DCF0C18>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed',)': /simple/<package>/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000002E91DCF02E8>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/<package>/
我认为我没有到达https://pypi.python.org/simple
【问题讨论】:
-
您是否有任何机会使用代理?
-
好吧,我在代理后面,我使用 pip install --proxy=user@mydomain:port somepackage 来安装包。感谢您的输入
标签: python-3.x installation packages