python
network_error
ai_generated
true
pip._vendor.urllib3.exceptions.ReadTimeoutError: 对 files.pythonhosted.org:443 的读取超时。
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
ID: python/pip-connection-timeout-read-timeout
80%修复率
87%置信度
0证据数
2024-08-14首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.x | active | — | — | — |
根因分析
网络缓慢或不稳定,或代理对大型 wheel 下载进行限速。
English
Slow or unstable network, or a proxy throttling large wheel downloads.
解决方案
-
90% 成功率
pip install --timeout 120 --retries 5 foo
-
85% 成功率
mkdir -p ~/.pip cat > ~/.pip/pip.conf <<'EOF' [global] timeout = 120 retries = 5 EOF pip install foo
无效尝试
常见但无效的做法:
-
60% 失败
Bypasses cache but does not address slow network; may worsen by re-downloading dependencies.
-
70% 失败
Same timeout will recur; retries waste bandwidth.