In my team, we have a complex dependencies tree. Some "base-packages" are required in different versions in "top-level" packages. For example, let's say we have:
- The base-package
x, latest version1.5.1. - The repo
my-service, that requires (insiderequirements.txt):- Package
x>=1.3.5. - Package
a, that reuiresx>=1.3.2, - Package
b, that reuiresx>=1.3.7, - Package
c, that reuiresx>=1.4.0.
- Package
Questions:
- When we run
pip install -r requirements.txt, what version ofxwill be installed? (the reason im not validating this myslef is that our situation is currenlty more complex and not as descibed here). - It is easy to see that the minimal required version for
my-serviceisx==1.4.0. Can we pass some sort of flag to pip in order to tell it to installx==1.4.0and notx==1.5.1(latest?)
Thanks.