python
network_error
ai_generated
true
警告:连接断开后重试(Retry(total=4, connect=None, read=None, redirect=None, status=None)):/simple/package/,原因:'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] 错误版本号 (_ssl.c:1129)'))'
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)'))': /simple/package/
ID: python/pip-extra-index-url-ssl-error
80%修复率
85%置信度
0证据数
2025-10-05首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
根因分析
额外的索引 URL 使用了 HTTP 而不是 HTTPS,或 SSL 配置不正确。
English
The extra index URL is using HTTP instead of HTTPS, or SSL configuration is incorrect.
解决方案
-
90% 成功率 Use HTTPS for the index URL
pip install --extra-index-url https://example.com/simple package_name
-
70% 成功率 Check SSL certificates and update
Update CA certificates on system
无效尝试
常见但无效的做法:
-
Increasing retries
40% 失败
Doesn't fix the underlying SSL issue.
-
Disabling SSL verification
30% 失败
Security risk.