Pip not working behind firewall

Use the –trusted-host argument.

I figured out how to get it to work with me behind my corporate firewall using the –trusted-host argument.

My first attempt was this:

pip install matplotlib

and the failed text was this:

Could not fetch URL https://pypi.python.org/simple/matplotlib/: There
was a problem confirming the ssl certificate: [SSL:
CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645) –
skipping

So then I tried this which worked:

pip3.5 install matplotlib --trusted-host pypi.python.org

Leave a Comment