3 ms·
The key difference between pypi and npm is that if you pull a package down and it depends on something==1.0.2 and you depend directly on the incompatible someth
by carrja99 11y ago
The key difference between pypi and npm is that if you pull a package down and it depends on something==1.0.2 and you depend directly on the incompatible something==0.8.9 both version live together in peace because only request will use 1.0.2. With pypi (and most other dependency management systems) you'll have to make a choice on which one you want to use and in this example you'll have to choose an older version of the library depending on something==1.0.2.
- abstractbeliefs 11y agoThis has been largely solved with virtualenvs where those collisions happen on the system level, but I concede it's harder when the mutually incompatible requirements are in the same project.
- tedmiston 11y agoIf I'm understanding the question correctly, I agree virtualenv + virtualenvwrapper solves it mostly. For what I consider a decent treatment of some of the shortcomings in pip vs. npm, I found this post helpful: "Things I wish Pip learned from Npm" https://medium.com/@alonisser/things-i-wish-pip-learned-from-npm-f712fa26f5bc https://medium.com/@alonisser/things-i-wish-pip-learned-from...