I just used homebrew to install Python 2.7.2 on a clean Mac OS X Snow Leopard install, but seem to be having trouble getting PIP to work with it well.
Here are the steps that I took:
- Installed python with Homebrew:
brew install python --framework
--universal - Updated my paths in my
.zsrc - Made a symbolic link from
/System/Library/Frameworks/Python.framework/Versions/Currentto/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/Current - Used
easy_installto installpip
These steps seem like they have worked:
$ brew doctor
Your system is raring to brew.
$ which python
/usr/local/bin/python
$ python --version
Python 2.7.2
$ which easy_install
/usr/local/share/python/easy_install
$ which pip
/usr/local/bin/pip
However, when I try to install things with pip, for example $ pip install ipython I get this error message '/System/Library/Frameworks/Python.framework/Versions/2.6/share': Permission denied
Why is pip still trying to install an old Python 2.6 location? How do I get it to install things to /usr/local/Cellar/python/2.7.2/ etc?
So, it looks like the way that I installed things I needed to use
/usr/local/share/python/pip-2.7instead of/usr/local/share/python/pip.Not sure why I have both pip and pip-2.7 but Aliasing my pip to the the 2-7 version seems to fix my issue.