I have two versions of python on my mac:
One preinstalled by Apple in /usr/bin
One from python.org in /Library/Frameworks/Python.framework/Versions/2.6
easy_install always installs to /usr/bin for some ununderstanable reason
So I explicitly now install easy_install in:
sh setuptools-0.6c11-py2.6.egg --install-dir=/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
Now I want to easy_install pip AND ….:
Searching for pip
Best match: pip 0.8
Processing pip-0.8-py2.6.egg
pip 0.8 is already the active version in easy-install.pth
Installing pip script to /usr/local/bin
error: /usr/local/bin/pip: Permission denied
My path and pythonpath:
PATH="/Library/Frameworks/Python.framework/Versions/2.6/bin:${PATH}"
export PATH
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
PYTHONPATH="/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages"
export PYTHONPATH
- One more PYTHONPATH where I keep modules I wrote
Sorry I really dont get it.
What am I doing wrong.
I just want to install modules regularly in the Framework Python directory
It’s hard to tell exactly what state your installation is in based on the information supplied.
/usr/local/binis the default installation location for the Apple-supplied/usr/bin/easy_installso, most likely, you are somehow invoking that instead of theeasy_installthat should have been installed by running thesh setuptools...script. There is no need to use the--install-dirparam to setuptools nor to setPYTHONPATHto point to the framework site-packages directory; that happens automatically. And you should not modify thePATHvariable twice, just use the first PATH and export.Starting from a newly-installed Python 2.6.5 from the python.org installer and a new terminal session, here’s the whole sequence: