| ▲ | DrScientist 9 hours ago | |
As an occasional python user I'm always amazed and frustrated that it seems that the only way to be able to use/build anything is to create a whole separate environment. And now given everybody now does this I guess the incentive to stop breaking stuff reduces even further. Might as well have static binaries. | ||
| ▲ | simondotau 9 hours ago | parent | next [-] | |
The meme phrase “it’s fractally wrong” applies to the entire python ecosystem, IMHO. Virtual environments are just another layer of this fractal wrongness in the layer cake of ecosystem awfulness. It’s a nice language though. | ||
| ▲ | kstrauser 4 hours ago | parent | prev [-] | |
That’s exactly how NPM works, and how Cargo works by default. You can make npm install stuff globally, but that’s not recommended except for things like CLI tooling. Cargo builds every project in its own separate targets/ directory unless you manually configure it to share that dir between builds. In both cases, the default is to isolate your current project from everything else on the system. The main difference is that Python use to make you have to know that the virtualenv existed. Now `uv run` and `poetry run` abstract that away so you don’t have to interact with it if you don’t want to. | ||