# 警告：在连接因 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))' 中断后重试（Retry(total=4, ...)）：/simple/numpy/

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

## 根因

网络中间件、代理或限流器在大型索引下载期间重置了 TCP 连接。

## 版本兼容性

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

## 解决方案

1. **** (85% 成功率)
   ```
   pip install --retries 10 --timeout 60 --index-url https://pypi.tuna.tsinghua.edu.cn/simple numpy
   ```
2. **** (90% 成功率)
   ```
   curl -L -O https://files.pythonhosted.org/packages/.../numpy-2.1.0-cp311-cp311-manylinux_2_17_x86_64.whl
pip install ./numpy-2.1.0-cp311-cp311-manylinux_2_17_x86_64.whl
   ```

## 无效尝试

- **** — Disabling the cache does not prevent the connection reset. (80% 失败率)
- **** — Reducing retries makes the failure immediate rather than fixing the network issue. (95% 失败率)
- **** — Lowering the timeout causes more timeouts and does not address the reset. (90% 失败率)
