[-] pyr0ball@lemmy.dbzer0.com 7 points 7 hours ago

It allows users to run the script on any installation of Python no matter where it's located, as well as allowing a user to set up specific Python package versions separate from the system-native ones.

Basically for flexibility and easy setup

[-] pyr0ball@lemmy.dbzer0.com 8 points 9 hours ago* (last edited 7 hours ago)

Try a venv or miniconda and use the universal shebang:

#!/usr/bin/env python

Edit: you've activated my brain shrimp, so I'll be back with an interactive setup script in a bit

Edit2:

Sorry I know it's GitHub but codeberg doesn't support gists yet and I can't fully test this by myself. Seems to work fine on Linux mint. I'll do some testing on Windows later

https://gist.github.com/pyr0ball/c6a608fbdd401903f1ff6faf14a065ce

pyr0ball

joined 2 months ago