# 警告：连接中断后重试（总重试次数=4）：'NewConnectionError'：无法建立新连接：[Errno 110] 连接超时

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

## 根因

网络问题阻止pip访问PyPI；防火墙、代理或DNS问题。

## 版本兼容性

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

## 解决方案

1. **Use a mirror or alternative index** (90% 成功率)
   ```
   pip install package -i https://pypi.douban.com/simple/
   ```
2. **Configure proxy if behind firewall** (85% 成功率)
   ```
   pip install package --proxy http://user:pass@proxy:port
   ```

## 无效尝试

- **Increasing pip timeout with --timeout=100** — Timeout extension doesn't fix underlying network connectivity. (70% 失败率)
- **Using --no-cache-dir** — Cache is not the issue; network still unreachable. (80% 失败率)
