35
Recommended way to run my scripts from a venv?
(feddit.org)
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023
I use my own Zsh project (zpy) to manage venvs stored like
~/.local/share/venvs/HASH-OF-PROJECT-PATH/venv
, so use zpy'svpy
function to launch a script with its associated Python executable ad-hoc, or add a full path shebang to the script with zpy'svpyshebang
function.vpy and vpyshebang in the docs
If anyone else is a Zsh fan and has any questions, I'm more than happy to answer or demo.