| ▲ | simonw 2 days ago | |||||||||||||
This works really well in my experience, but it does mean you need to have a working internet connection the first time you run the script.
Then:
It manages a disposable hidden virtual environment automatically, via a very fast symlink-based caching mechanism.You can also add a shebang line so you can execute it directly:
Then: | ||||||||||||||
| ▲ | emidln 2 days ago | parent [-] | |||||||||||||
I wish env -S was more portable. It's a newer feature of the coreutils env implementation and isn't supported elsewhere afaik. | ||||||||||||||
| ||||||||||||||