Skip to content

virtualenvwrapper

virtualenvwrapper

Usage

Create a virtualenv

mkvirtualenv --python `which python2` [name]

Switch between virtualenvs

workon [name]

Install

export WORKON_HOME=~/Envs
mkdir -p $WORKON_HOME
source /usr/local/bin/virtualenvwrapper.sh

virtualenvwrapper-doc

Config

Setup enviroment variables in a virtualenv

Edit $VIRTUAL_ENV/bin/postactivate and there add:

export VAR=value

stackoverflow