Aug 182021
 

Recently I had some trouble with pip in a corp environment and I learned some basic things that I will share:

  • “pip config -v debug” and “pip config -v list” will show you where your pip.ini is and which is in use
  • adding
    • [global]
    • trusted-host = pypi.python.org pypi.org files.pythonhosted.org
  • to pip.ini will help in case of SSL interception in corp environments
  • (for some other packages like azure you will also need to SET ADAL_PYTHON_SSL_NO_VERIFY=1 and SET AZURE_CLI_DISABLE_CONNECTION_VERIFICATION=1 as environment var in your OS)
  • you can upgrade pip using pip install –upgrade pip
  • verification via pip -V
  • often it will fail because of hash errors – just do pip cache purge

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)