1

According to this seems there is no way to specify an order to install packages from requirements.txt. My scenario is a bit different so I just want to make sure if there is any way to do it right in the requirements.txt file. I have multiple python packages in my requirements.txt that I install them from pypi repo. There is only one package that install it from a private repo and I'm able to do that using --extra-index-url option. Is there a way to instruct pip to install the public packages first using --index-url and then install the private package using the extra-index-url?

Nisman
  • 1,271
  • 2
  • 26
  • 56
  • 1
    Why do you want to do this? If the private package depends on some PyPI packages, declare that in your `setup.py` and let pip figure it out. – ChrisGPT was on strike Feb 21 '22 at 17:29
  • 1
    Unless the installation process itself requires the presence of certain packages, the order in which they are installed shouldn't matter. – chepner Feb 21 '22 at 17:34

0 Answers0