# pip._vendor.urllib3.exceptions.ReadTimeoutError: 对 files.pythonhosted.org:443 的读取超时。

- **ID:** `python/pip-connection-timeout-read-timeout`
- **领域:** python
- **类别:** network_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

网络缓慢或不稳定，或代理对大型 wheel 下载进行限速。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.x | active | — | — |

## 解决方案

1. **** (90% 成功率)
   ```
   pip install --timeout 120 --retries 5 foo
   ```
2. **** (85% 成功率)
   ```
   mkdir -p ~/.pip
cat > ~/.pip/pip.conf <<'EOF'
[global]
timeout = 120
retries = 5
EOF
pip install foo
   ```

## 无效尝试

- **** — Bypasses cache but does not address slow network; may worsen by re-downloading dependencies. (60% 失败率)
- **** — Same timeout will recur; retries waste bandwidth. (70% 失败率)
