Blog › Python · Published 2026-11-26

Fix pip "CERTIFICATE_VERIFY_FAILED" SSL error

pip checks the HTTPS certificate of the package index. This error means it could not verify the certificate chain.

Typical causes

Safe fixes

pip install --cert /path/to/company-ca.pem package-name

You can also set it in the pip configuration file with the cert option.

Avoid this

The --trusted-host option skips verification for a host. It works, but it removes the protection HTTPS gives you, so use it only as a short-term step on a network you trust.

Official sources

Need help with your project?
We build websites, systems and automation. Start your project WhatsApp

All articles