# 错误：无法获取 URL https://pypi.org/simple/package/：连接超时

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

## 根因

网络连接问题或当前网络无法访问 PyPI。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |

## 解决方案

1. **Use a mirror or proxy** (90% 成功率)
   ```
   pip install --index-url https://mirrors.aliyun.com/pypi/simple/ package_name
   ```
2. **Increase timeout** (70% 成功率)
   ```
   pip install --timeout 120 package_name
   ```

## 无效尝试

- **Retrying the command** — May time out again. (60% 失败率)
- **Using a different DNS** — May not solve routing issues. (40% 失败率)
