Skip to content

Instantly share code, notes, and snippets.

@AndrewIngram
Created June 24, 2011 14:32
Show Gist options
  • Save AndrewIngram/1044878 to your computer and use it in GitHub Desktop.
Save AndrewIngram/1044878 to your computer and use it in GitHub Desktop.
How to get Python working properly on a Mac
1. Install Xcode 4
2. Install homebrew.
3. brew install python --framework
4. brew install libjpeg (for PIL)
5. sudo unlink /System/Library/Frameworks/Python.framework/Versions/Current
6. sudo ln -s /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/Current /System/Library/Frameworks/Python.framework/Versions/Current
7. nano ~/.bash_profile
8. add: export PATH=/usr/local/share/python:/usr/local/bin:$PATH
9. source ~/.bash_profile (or you can load a new terminal window)
10. easy_install pip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment