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 =
  • 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