SSL Cert Errors on Windows 10 When Installing Python 3 PIP and Python Modules Resolution


Recently ran into an issue when trying to install Python PIP using and Python modules using PIP. The error I was receiving was WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)’))’: /simple/pip/. After a bit of research found a workable solution to get PIP installed. But that was not the end of the issue as the same error happened when trying to install Python modules using the PIP application. Luckily the workaround for PIP was the same for the modules.

pip install error


The resolution was simple with the help of adding a few switches to the command line. By adding three hosts using the –trusted-host option we can eliminate the SSL errors.

The three hosts to add are:


Since PIP is already installed we will need to include the –upgrade parameter. So our complete command line should look like this:

python -m pip install –trusted-host –trusted-host –trusted-host –upgrade pip

C:\Python37> python -m pip install --trusted-host --trusted-host --trusted-host --upgrade pip


Using the same –trusted-host we can install python modules. In this example we will install influxdb.

pip install --trusted-host --trusted-host --trusted-host influxdb

If you are using the requirements.txt file to install multiple modules you can do so using the similar command.

pip install --trusted-host --trusted-host --trusted-host -r C:\Utils\grafana\vmax_monitoring-master\requirements.txt

Hope this helps!




One Response to “SSL Cert Errors on Windows 10 When Installing Python 3 PIP and Python Modules Resolution”

  1. Subbu says:

    You saved my day.. even SO couldn’t get me the answer.. thanks man

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.