Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
How to configure Python pip to look for packages in a private index first?
When I run
pip install foo, pip looks for
foo in PyPi.
I want it to look for it first in a private repo, let's say
pypi.bar.com. Only if
foo cannot be found in
pip then look for it in PyPi.
How can I configure pip to do this?