3 ms·
Yes, it creates a separate environment for each script. No, it doesn’t create a lot of bloat. There’s a separate cache and the packages are hard-linked into the
by JimDabell 1y ago
Yes, it creates a separate environment for each script. No, it doesn’t create a lot of bloat. There’s a separate cache and the packages are hard-linked into the environments, so it’s extremely fast and efficient.
- kristianp 1y agoIs the environment located in the .venv folder under the same directory as the script?
- knowaveragejoe 1y agoThe venv is created and then discarded once the script finishes execution. This is well suited to one-off scripts like what is demonstrated in the article. In a larger project you can manage venvs like this using `uv venv`, where you end up with a familiar .venv folder.