Skip to main content

Python - pip install SSL certificate error

How to ignore the SSL Certificate errors#

When you see an error like this, it's most likely that you are behind a proxy server (or something else).

Could not fetch URL
There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='', port=443):
Max retries exceeded with url:
/simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)'))) - skipping

Add the --trusted-host and --trusted-host to the pip install command.

pip install --trusted-host --trusted-host <package_name>
Last updated on