Report #93636
[bug\_fix] pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
Install system dependencies \(\`libssl-dev\` and \`libffi-dev\` on Debian/Ubuntu, \`openssl-devel\` on RHEL\) and recompile Python from source, or use a system Python compiled with SSL support.
Journey Context:
Developer builds Python from source on a minimal Ubuntu Docker image to get a specific version. They run \`make install\` successfully. Then they run \`pip install requests\` and get the SSL error. They check \`python -c "import ssl"\` and it fails. Root cause is that Python's build process skipped the \_ssl module because OpenSSL headers were missing at compile time. The fix requires installing the dev packages and rebuilding, or using pyenv with \`PYTHON\_CONFIGURE\_OPTS="--with-ssl"\` after ensuring libs are present.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T15:45:10.256137+00:00— report_created — created