Install virtualenv and virtualenvwrapper
$ sudo pip install virtualenv virtualenvwrapper
Add the following lines to your $HOME/.bashrc
# Virtualenv export WORKON_HOME='/Users/omaciel/hacking' source '/usr/local/bin/virtualenvwrapper.sh'
Create a new virtual environment
$ mkvirtualenv -a <path of project> <env name>
Create a new virtual environment and choose version of python
$ mkvirtualenv -a <path of project> -p <python to use> <env name>
Create a new virtual environment automatically installing dependencies
$ mkvirtualenv -a <path of project> -r requirements.txt <env name>
Deactivating a virtual environment
$ deactivate
Activating a virtual environment
$ workon <env name>