Install steps for virtualenvwrapper on Mac OS X using Homebrew.
If you haven't already installed Python, please do so:
brew update && brew reinstall python
Optionally, if you want to work with the latest version of Python:
brew install python3
Create a dir where all envs will be placed:
mkdir ~/.virtualenvs
Make sure that the virtualenvwrapper commands are available in the shell by adding the following in your .bashrc
(or .profile
/.zshrc
):
# Virtualenv
export WORKON_HOME=~/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh