1. 刪除easy_install命令相關的可執行文件
Check your /usr/bin and /usr/local/bin for easy_install installations and remove any old script:
2. 下載和安裝distribute
Download and run distribute:
如果上面的distribute_setup.py不能下載成功,那麼可以直接下載distribute源碼包:https://pypi.python.org/packages/source/d/distribute/distribute-0.6.49.tar.gz
參考這個文檔的安裝過程,https://pypi.python.org/pypi/distribute/0.6.49
3. 重新執行easy_install,已經修復了。
Try again, and enjoy. E.g.:
http://stackoverflow.com/questions/6012246/why-is-python-easy-install-not-working-on-my-mac
http://pythonhosted.org/distribute/