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:
brew install python --framework
--universal
.zsrc
/System/Library/Frameworks/Python.framework/Versions/Current
to /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/Current
easy_install
to install pip
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.7
instead 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.
Homebrewed Python now installs pip
.
Since a while pip is installed directly into your homebrew-bin directory.
Therefore, $(brew --prefix)/bin/pip
should be in your PATH
, if your Homebrewbrew is set up correctly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With