与pypi.org的连接超时

时间:2019-08-25 19:15:08

标签: python pip

无法点安装第三方软件包。

(venv) λ pip install django
Collecting django
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001BEF10AD0F0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/django/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001BEF10ADE48>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/django/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001BEF10BB518>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/django/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001BEF10BB320>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/django/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001BEF10BB7B8>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/django/
  Could not find a version that satisfies the requirement django (from versions: )
No matching distribution found for django

我正在尝试仅通过输入pip install django进行安装。为了提供上下文,我正在使用Windows 10在自己的个人计算机上工作。我阅读的所有其他资源似乎都可以解决该问题。我试图弄清楚该怎么办,所以我可以简单地...

pip install django

我对代理和防火墙不熟悉,不清楚需要采取什么陡峭措施。

1 个答案:

答案 0 :(得分:0)

似乎您在网络中使用代理。这个想法是您需要指定代理详细信息以通过它,或者将代理停止一段时间。

我认为您的问题类似于另一个问题:

Proxy awareness with pip