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

其他格式: JSON · Markdown 中文 · English
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.

generic

解决方案

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

无效尝试

常见但无效的做法:

  1. Increasing retries 40% 失败

    Doesn't fix the underlying SSL issue.

  2. Disabling SSL verification 30% 失败

    Security risk.