Skip to content

Connection broken by ‘SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)’

This happens when your machine does not have the correct certificate bundle to access the Pypi repository, or you are behind a corporate proxy that just loves to block everything!

An easy way to get around this is to edit (or create) a local pip.conf file under your home directory:

Code language: JavaScript (javascript)

Put the following in:

[global] index-url = trusted-host =
Code language: PHP (php)

As you can see, we have changed the download location to a mirror that doesn’t use HTTPS, so there will be no certificate issues.

Do note that this is NOT a general long term option, but rather something you can use to get the job done if you are well and truly stuck!

See also  How to run Shell Commands in a Kubernetes Cluster
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x