I have an RPi3B+ which I can connect to through either Putty or VNC, both work fine. I've installed virtualenv with pip install virtualenv virtualenvwrapper
.
When I'm connected through Putty and I issue the command workon <envname>
I can enter the virtual environment without issue, but when I do the same having opened up a terminal in VNC, I get bash: workon: command not found
.
I've issued pip install virtualenv virtualenvwrapper
on VNC, and it's definitely there, but still get command not found
.
Also, python modules that I've imported while connected by VNC aren't available when connected by Putty.
Why the difference? Aren't they just two different ways to access the same machine?
export WORKON_HOME=$HOME/.virtualenvs \ export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 \ source /usr/local/bin/virtualenvwrapper.sh
to the file. Do I need to put those into ~/.bashrc too? – Jim421616 Oct 26 '18 at 1:27