# 错误：由于 OSError：HTTPSConnectionPool(host='pypi.org', port=443)：读取超时，无法安装包。

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

## 根因

网络连接问题或与 PyPI 的连接速度过慢导致读取操作超时。

## 版本兼容性

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

## 解决方案

1. **** (80% 成功率)
   ```
   pip install --timeout 120 package
   ```
2. **** (85% 成功率)
   ```
   pip install --index-url https://pypi.tuna.tsinghua.edu.cn/simple package
   ```
3. **** (75% 成功率)
   ```
   pip install --proxy http://user:pass@proxy:port package
   ```

## 无效尝试

- **** — Transient issues may resolve, but persistent timeouts require configuration changes. (50% 失败率)
- **** — SSL verification is not the cause of timeout. (95% 失败率)
- **** — The issue is network-related, not package-specific. (90% 失败率)
