# 警告：连接断开后重试（Retry(total=4, connect=None, read=None, redirect=None, status=None)）：/simple/package/，原因：'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] 错误版本号 (_ssl.c:1129)'))'

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

## 根因

额外的索引 URL 使用了 HTTP 而不是 HTTPS，或 SSL 配置不正确。

## 版本兼容性

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

## 解决方案

1. **Use HTTPS for the index URL** (90% 成功率)
   ```
   pip install --extra-index-url https://example.com/simple package_name
   ```
2. **Check SSL certificates and update** (70% 成功率)
   ```
   Update CA certificates on system
   ```

## 无效尝试

- **Increasing retries** — Doesn't fix the underlying SSL issue. (40% 失败率)
- **Disabling SSL verification** — Security risk. (30% 失败率)
