3 ms·
Python ships with venv support. It’s not that difficult to bootstrap a venv before running your script, and that’s only if you actually need tooling other than
by sgarland 2y ago
Python ships with venv support. It’s not that difficult to bootstrap a venv before running your script, and that’s only if you actually need tooling other than stdlib, which you probably don’t.
- tayo42 2y agoIt's definitely clunky and tedious to switch between every projects or scripts environment. Idk why people are pretending there aren't tons of useful libraries out there. Like if you want to script anything with aws, use yaml
- sgarland 2y agoThere are plenty of ways to have the venv automatically activate (and de-activate) when you enter/leave the directory for the project. direnv [0], mise [1], or various shell hooks. There are useful libraries, I’m not saying there aren’t. I just dislike it when people include one as a dependency when they really didn’t need it. [0]: https://github.com/direnv/direnv https://github.com/direnv/direnv [1]: https://github.com/jdx/mise https://github.com/jdx/mise