Created
January 9, 2012 16:36
-
-
Save gregglind/1583738 to your computer and use it in GitHub Desktop.
Install Python Stuff on osx
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
## these are all untested! | |
# get a clean python, so you don't contaminate your system. | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" | |
brew install python --framework | |
# run off and get xcode. Cry while it downloads and installs. | |
# distribute | |
curl -O http://python-distribute.org/distribute_setup.py | |
python distribute_setup.py | |
# pip | |
easy_install pip | |
pip install distribute | |
pip install virtualenv virtualenvwrapper | |
# venv off the brewed python | |
mkvirtualenv -p /usr/local/Cellar/python/2.7.2/bin/python myenv | |
workon myenv # workon from virtualenvwrapper | |
# from here you are in a 'clean' python. pip and such from inside it! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment