# 错误：异常：Traceback (most recent call last): ... ConnectionResetError: [Errno 104] 连接被对端重置

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

## 根因

与包索引的连接被强制关闭，通常是由于网络不稳定、防火墙或代理问题。

## 版本兼容性

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

## 解决方案

1. **** (80% 成功率)
   ```
   pip install -i https://pypi.org/simple package
   ```
2. **** (75% 成功率)
   ```
   unset http_proxy https_proxy; pip install package
   ```

## 无效尝试

- **** — If the network issue persists, retrying may hit the same reset. (70% 失败率)
- **** — Increases retry attempts but does not fix the underlying network problem. (60% 失败率)
