Problem using pip after installing Python 2.7 with Homebrew on Mac OS X 10.6.8

I just used homebrew to install Python 2.7.2 on a clean Mac OS X Snow Leopard, but it seems to have problems getting PIP to work with it.

Here are the steps I took:

  • Installed python with Homebrew: brew install python --framework --universal
  • Updated my paths in .zsrc
  • Created a symlink 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 look as if they 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 using pip, for example $ pip install ipython, I get this error message'/System/Library/Frameworks/Python.framework/Versions/2.6/share': Permission denied

Why is the pip still trying to set the old location of Python 2.6? How can I set it for /usr/local/Cellar/python/2.7.2/etc.

+5
source share
3

, , , /usr/local/share/python/pip-2.7 /usr/local/share/python/pip.

, pip, pip-2.7, Aliasing my pip 2-7, , .

+2

Homebrewed Python pip.

pip homebrew-bin.

, $(brew --prefix)/bin/pip PATH, Homebrewbrew .

+2

easy_install pip? easy_install, , Python 2.6, , pip 2.6.

brew install pip?

,

+1

All Articles