Skip to content

Instantly share code, notes, and snippets.

@apavamontri
Last active December 15, 2019 08:22
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apavamontri/4516816 to your computer and use it in GitHub Desktop.
Save apavamontri/4516816 to your computer and use it in GitHub Desktop.
Install Python + virtualenv + virtualenvwrapper with brew on Mac OS X 10.8 Mountain Lion
# installation
brew doctor
brew install python
pip install virtualenv virtualenvwrapper
# Add following to .bash_profile
export PATH=/usr/local/bin:/usr/local/mysql/bin:/usr/local/share/python:$PATH:~/bin
export WORKON_HOME=$HOME/.virtualenvs
export PIP_VIRTUALENV_BASE=$WORKON_HOME
export PIP_RESPECT_VIRTUALENV=true
. /usr/local/share/python/virtualenvwrapper.sh
# Reload .bash_profile
source ~/.bash_profile
@harrytran998
Copy link

Thank for help

@valentinsavenko
Copy link

nice work!

@zsorizs
Copy link

zsorizs commented Aug 16, 2019

PIP_RESPECT_VIRTUALENV is obsolete for a long time now (since pip version 1.1).

Setting PIP_VIRTUALENV_BASE and PATH is also unnecessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment