Credit to Christian Perez (https://github.com/chris-zen)
brew install pyenv
pyenv install 2.7.12
pyenv global 2.7.12
https://github.com/pyenv/pyenv-virtualenvwrapper
brew install pyenv-virtualenvwrapper
# Pyenv
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi
pyenv virtualenvwrapper_lazy
mkvirtualenv test_env
workon
workon test_env