I've installed python 2.7 with the dmg-installer of the official python page. After typing which python
in terminal, I get this:
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
But when I want to install a package with easy_install, for example like this easy_install pycassa
, I get the message Installed /Library/Python/2.6/site-packages/pycassa-1.1.0-py2.6.egg
, what is obviously the wrong path. So when I try to use the installed package with import pycassa
I get the error "no module named pycassa".
So how can I fix this issue best?
Best Answer
It seems that your installation of setuptools is obsolete.
If you want your "easy_install" match your updated python version, follow these steps:
Download the corresponding .egg file at http://pypi.python.org/pypi/setuptools#files Run it as if it were a shell script: sh setuptools-0.6c9-py2.7.egg This will install the new "easy_install" executable, compatible with your current version of python.
Hope this helps.
(more details at http://pypi.python.org/pypi/setuptools#cygwin-mac-os-x-linux-other)