Last active
December 15, 2019 08:22
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
nice work!
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
Thank for help