PIP - Set additional repository URLs using pip.conf
by
Jeremy Canfield |
Updated: October 23 2023
| 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