pip安装命令报错ConnectTimeoutError
Pip install commands error ConnectTimeoutError
我正在尝试在我的 Windows 10 PC 上安装 Django 1.8.11,但是当 运行 pip install django==1.8.11
:
时出现此错误
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000001CE97C60D68>, 'Connection to xxxx.xxxx.xxx.xx timed out. (connect timeout=15)')': /simple/pip/
(xxxx.xxxx.xxx.xx
是我有时用作代理的地址)
我有Python版本:3.5.4
和 pip 版本:9.0.1
我已经用 netsh winhttp show proxy
检查了代理设置
Current WinHTTP proxy settings:
Direct access (no proxy server).
我不支持任何公司代理
我的系统代理设置是
Automatically detect settings -> ON
Use setup script -> OFF
Use a proxy server -> OFF
也尝试过ping pypi.python.org
Ping statistics for 151.101.4.223:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 92ms, Maximum = 102ms, Average = 95ms
所以,我可以访问互联网
我还删除了临时文件,尝试 python -m pip --proxy="" install django==1.8.11
,在注册表中搜索数据或值 xxxx.xxxx.xxx.xx
,结果相同...
如果有人知道 xxxx.xxxx.xxx.xx
配置在哪里以便我可以删除它,不知道还能做什么。
尝试安装最新版本pip install Django
查看当前环境变量,尝试找到任何代理设置:
set | find "proxy"
如果找到任何东西 — 取消设置变量。
列出配置文件中的设置:
pip config list | find "proxy"
如果找到任何东西 — 使用 pip config unset
或 pip config edit
取消设置变量。请参阅 pip config
的文档 https://pip.pypa.io/en/stable/reference/pip_config/
我正在尝试在我的 Windows 10 PC 上安装 Django 1.8.11,但是当 运行 pip install django==1.8.11
:
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000001CE97C60D68>, 'Connection to xxxx.xxxx.xxx.xx timed out. (connect timeout=15)')': /simple/pip/
(xxxx.xxxx.xxx.xx
是我有时用作代理的地址)
我有Python版本:3.5.4
和 pip 版本:9.0.1
我已经用 netsh winhttp show proxy
Current WinHTTP proxy settings:
Direct access (no proxy server).
我不支持任何公司代理 我的系统代理设置是
Automatically detect settings -> ON
Use setup script -> OFF
Use a proxy server -> OFF
也尝试过ping pypi.python.org
Ping statistics for 151.101.4.223: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 92ms, Maximum = 102ms, Average = 95ms
所以,我可以访问互联网
我还删除了临时文件,尝试 python -m pip --proxy="" install django==1.8.11
,在注册表中搜索数据或值 xxxx.xxxx.xxx.xx
,结果相同...
如果有人知道 xxxx.xxxx.xxx.xx
配置在哪里以便我可以删除它,不知道还能做什么。
尝试安装最新版本pip install Django
查看当前环境变量,尝试找到任何代理设置:
set | find "proxy"
如果找到任何东西 — 取消设置变量。
列出配置文件中的设置:
pip config list | find "proxy"
如果找到任何东西 — 使用 pip config unset
或 pip config edit
取消设置变量。请参阅 pip config
的文档 https://pip.pypa.io/en/stable/reference/pip_config/