Public Notes on
View Public Collections
You have to pass $USER env to sudo:

sudo env "PATH=$PATH VIRTUAL_ENV=$VIRTUAL_ENV" python myscript.py

#fixes #bash #python #pyenv #linux

Show More