logoalt Hacker News

andoandolast Tuesday at 8:08 PM1 replyview on HN

Why can't we just have something like npm/gradle/maven dependencies? What makes python any different?


Replies

lexicalitylast Tuesday at 8:56 PM

A python virtualenv is just a slightly more complicated node_modules. Tools like PDM, Poetry and uv handle them automatically for you to the point where it effectively is the same as npm.

The thing that makes Python different is that it was never designed with any kind of per-project isolation in mind and this is the best way anyone's come up with to hack that behaviour into the language.

show 1 reply