Bootstrap FreeKB - PIP - Set additional repository URLs using pip.conf
PIP - Set additional repository URLs using pip.conf

Updated:   |  PIP articles

The pip.conf file can be used to list additional URLs that PIP can used when looking for packages. Typically, the pip.conf file is placed in your hidden .pip directory, such as.

/home/john.doe/.pip/pip.conf

 

Here is an example of what could be listed in pip.conf. In this example, PIP will look for packages in https://nexus.example.com/repository/pypi-all/simple such as when using the pip install command.

[global]
index = https://nexus.example.com/repository/pypi-all/pypi
index-url = https://nexus.example.com/repository/pypi-all/simple

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 122570 in the box below so that we can be sure you are a human.