virtualenv virtualenvwrapper - AsyDynamics/PiTrick Wiki

Install and configure: sudo apt install virtualenv virtualenvwrapper echo "source /usr/share/virtualenvwrapper/virtualenvwrapper.sh" >> ~/.bashrc export WORKON_HOME=~/.virtualenvs mkdir $WORKON_HOME echo "export WORKON_HOME=$WORKON_HOME" >> ~/.bashrc echo "export PIP_VIRTUALENV_BASE=$WORKON_HOME" >> ~/.bashrc source ~/.bashrc

Usage: mkvirtualenv -p python2.7 test if it shows the path to python does not exist, try speicify it: mkvirtualenv --python=/usr/bin/python* test workon test deactivate rmvirtualenv test

In sublime: ctrl+shift+p -> virtualenv activae -> choose the one check: https://askubuntu.com/a/244642

Or, use pip to install virtualenv etc: pip install virtualenv virtualenvwrapper mkvirtualenv myenv mkvirtualenv -p /usr/local/bin/python3.5 py35 and the mkproject command will create a developing directory as well: mkproject myproject To work on certain env: workon myenv and to exit: deactivate

other tips, check here lsvirtualenv rmvirtualenv myenv lssitepackages wipeenv