- Extension of virtualenv tool
- organize all virtual environments in one place
- wrappers for managing virtual environemts(create, delete, copy .. )
- single command to switch between environments
- Virtualenvwrapper should be installed into the same global site-packages area where virtualenv is installed
pip install virtualenvwrapper
or
sudo pip install virtualenvwrapper
add following lines to your .bashrc or .profile, to set the location where your virtual environemts should live
export WORKON_HOME=~/Envs
source /path to virtualenvwrapper shell file/virtualenvwrapper.sh
after editing, run source ~/.bashrc
to reload.
- run
workon
to get a list of environemnts in /Envs folder - run
mkvirtualenv temp
to make and acitivate a new virtualenv names temp - run
workon env1/env2/env3...
to switch between environemnts - run
deactivate
to deactivate environment
lsvirtualenv
rmvirtualenv ENVNAME
you must deactivate before removing the current environment
cpvirtualenv ENVNAME [TARGETENVNAME]
allvirtualenv [COMMAND]
allvirtualenv pip install -U pip