HPR2288: Installing and using virtualenvwrapper for python
TRACK

HPR2288: Installing and using virtualenvwrapper for python

Avatar

Installing Virtual env wrapper in linux
Best documentation I have found for working with virtualenvwrapper:
http://python-guide-pt-br.readthedocs.io/en/latest/dev/virtualenvs/
Assuming you have pip installed.

Install virtualenv

sudo -H pip install virtualenv

Install virtualenvwrapper

sudo -H pip install virtualenvwrapper

Modify your .bashrc file to include that following lines:

export WORKON_HOME=~/Envs
source /usr/local/bin/virtualenvwrapper.sh

Test the commands:

mkvirtualenv
rmvirtualenv
lsvirtualenv (Lists all virtual environments you have created.)
workon
deactivate

Don't use SUDO when installing inside the virtualenv

Comments

Avatar