Since /Library/Frameworks/Python.framework/Versions/2.7/bin/python is the path to a separately installed Python 2.7 (possibly from the python.org installer), and not the Apple Python 2.7 supplied ( /usr/bin/python2.7 ), you need to make sure that you use easy_install for this separate Python or change the use of Python supplied by Apple. To do this, you must ensure that your shell PATH variable is correct. In the first case, you must install easy_install by doing the following:
cd /tmp curl -O http://python-distribute.org/distribute_setup.py sudo $VIRTUALENVWRAPPER_PYTHON distribute_setup.py
You can fix your PATH shell to include the bin directory. If you use bash , one way would be to add this line to ~/.bash_profile :
export PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
Then open a new terminal session. You should now find that the easy_install that you just installed is correct:
$ which easy_install /Library/Frameworks/Python.framework/Versions/2.7/bin/easy_install
Ned deily
source share