Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can you elaborate on this? How is npm/cargo/etc better than pip on this regard?

As far as I know, files like requirements.txt, package.json, cargo.toml are intended to be used as a snapshot of the dependencies in your project.

In case you need to update dependency A that also affects dependency B and C, I am not sure how one tool is better than other.



Open a requirements.txt and a package.lock.json next to each other and compare. Then you will know the answer to the question what npm, cargo, and others are doing better than pip. Oh, did I sneek a ".lock" in there? Damn right I did.


They will resolve a version that works for all dependencies if it exists.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: