First, install virtualenv / virtualenvwrapper:
python -m pip install virtualenv
python -m pip install virtualenvwrapper
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.shIf you add source /usr/local/bin/virtualenvwrapper.sh to your local bash file (~/.bash_profile on Mac, ~/.bashrc on Linux), virtualenvwrapper commands will be available to you whenever you open a new command prompt. You can then use the following commands to make those changes active.
Mac users: source ~/.bash_profile
Linux users: source ~/.bashrc
Finally, activate the virtual environment for TensorPy:
mkvirtualenv tensorpyIf you ever need to leave your virtual environment, use the following command:
deactivateYou can always jump back in later:
workon tensorpy