Report #4969
[bug\_fix] SSL CERTIFICATE\_VERIFY\_FAILED during pip install
Set the environment variable REQUESTS\_CA\_BUNDLE to the path of your corporate CA bundle, or update certifi with 'pip install --upgrade certifi' if using an old Python installation. Root cause: Pip cannot verify PyPI's SSL certificate due to missing root certificates \(common on macOS with outdated Python installers\) or corporate MITM proxies that replace the certificate.
Journey Context:
You're on a corporate Windows laptop behind Zscaler. You run 'pip install flask' and get 'SSL: CERTIFICATE\_VERIFY\_FAILED'. You try upgrading pip but it fails with the same error. You check 'python -m certifi' and see an old path. Your IT dept provided a corporate-ca.pem. You set 'export REQUESTS\_CA\_BUNDLE=/path/to/corporate-ca.pem' on Linux/macOS or set the environment variable in Windows. Pip now validates the proxy's certificate against your corporate CA and the install succeeds. Alternatively, on an old macOS with the system Python 2.7, you install 'certifi' to update the CA bundle.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:22:47.420755+00:00— report_created — created