Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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='https://pypi.python.org/simple'

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.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Thanks!

>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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading