Skip to content

Instantly share code, notes, and snippets.

What would you like to do?

If you are facing the following issue while using pip install application_name:

Could not fetch URL There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='', port=443): Max retries exceeded with url

The following solution will help solve the problem:

Update the /etc/pip.conf with the following config:

trusted-host =


trusted-host =

Instead of manually creating the pip.ini file at the above location, please run the following command line prompt-

python -m pip config set

If you just want to invoke the pip instal without setting anything, you can only use the below option to mark the host or host:port pair as trusted, even though it does not have valid or any HTTPS.

--trusted-host <hostname>


pip3 install application_name --trusted-host --trusted-host


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment