Why is Python easy_install not working on my Mac?

297 查看

mac下出现pyeasy_install错误,功能无法使用。

放狗搜到一个同样问题的讨论,原链接其中有个方法测试通过:

1.Check your /usr/bin and /usr/local/bin for easy_install installations and remove any old script:

sudo rm /usr/bin/easy_install*

sudo rm /usr/local/bin/easy_install*

2.Download and run distribute:

curl -O http://python-distribute.org/distribute_setup.py

sudo python distribute_setup.py

sudo rm distribute_setup.py

3.Try again, and enjoy. E.g.:

sudo easy_install pip