Remove private PyPi index from local virtual env

I have somehow managed to mess up my pip indexes for a local virtual env.

pip config list returns the following
:env:.index-url='https://***/private-pypi/simple/' global.index-url=''

This makes pip to always default to searching the private pypi index first. Any idea how I can remove the env specific index? It does not appear in the pip.conf file and running pip config unset env.index-url does not work either or I can’t get the right syntax.


>Solution :

You can remove the environment-specific index by directly editing the environment’s pip.ini file or pip.conf file. The file should be located in the environment’s lib/pythonX.X/site-packages/pip/ directory. Simply delete the line with the "index-url" value and the default global index will be used.

Leave a Reply