

4·
3 hours agoTry 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
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