python network_error ai_generated true

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

Also available as: JSON · Markdown · 中文
80%Fix Rate
85%Confidence
0Evidence
2025-10-05First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.9 active — — —
3.10 active — — —

Root Cause

The extra index URL is using HTTP instead of HTTPS, or SSL configuration is incorrect.

generic

中文

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

Workarounds

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

Dead Ends

Common approaches that don't work:

  1. Increasing retries 40% fail

    Doesn't fix the underlying SSL issue.

  2. Disabling SSL verification 30% fail

    Security risk.