I'm having trouble reaching a nexus server that we're using to store custom python packages. I've been told to change the settings in both my ~/.pypirc
file and the ~/.pip/pip.conf
file.
What's the difference between those two files in how they're used? It seems like the pip install -r requirements.txt
command refers to the pip.conf
file, and then the fields within the pip.conf
file requires looking up the pypirc file?
Example pip.conf file:
[global]
index = https://user:[email protected]/somerepo/pypi-group/pypi
index-url = index = https://user:[email protected]/somerepo/pypi-group/simple
Example pypirc file:
[distutils]
index-servers =
pypi
nexus
[pypi]
repository: https://pypi.org/pypi
username: abc
password: def
[nexus]
repository: https://someurl.com/somerepo/pypi-internal
username: someuser
password: somepassword
Also, what's the difference between index and index-url in the pip.conf file?