gpt4 book ai didi

python - 与 pypi.org 的连接超时

转载 作者:太空宇宙 更新时间:2023-11-03 20:28:52 32 4
gpt4 key购买 nike

无法 pip 安装第 3 方软件包。

(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来进行pip安装。为了提供上下文,我正在使用 Windows 10 在自己的个人计算机上工作。我读过的所有其他资源似乎都可以解决该问题。我正在尝试找出可以做什么,这样我就可以简单地...

pip 安装 django

我不熟悉代理和防火墙,我不清楚需要采取哪些措施。

最佳答案

您似乎正在网络中使用代理。您需要指定代理详细信息才能通过它,或者停止代理一段时间。

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

Proxy awareness with pip

关于python - 与 pypi.org 的连接超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57648998/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com