在mac Python上中断默认的easy_安装。。。我怎么修理它?

在mac Python上中断默认的easy_安装。。。我怎么修理它?,python,macos,Python,Macos,我有点删除了easy_install,我不确定如何重新安装它: -bash: /usr/bin/easy_install: No such file or directory 我希望我的默认2.7.5 mac python能够再次工作。谢谢大家 我确实有 ./bin/easy_install-2.5 ./bin/easy_install-2.6 ./bin/easy_install-2.7 在我的系统上。我应该为其中一个文件制作符号链接或其他东西吗?摘自: 打开终端并按照以下步骤操作: 下

我有点删除了easy_install,我不确定如何重新安装它:

-bash: /usr/bin/easy_install: No such file or directory
我希望我的默认2.7.5 mac python能够再次工作。谢谢大家

我确实有

./bin/easy_install-2.5
./bin/easy_install-2.6
./bin/easy_install-2.7
在我的系统上。我应该为其中一个文件制作符号链接或其他东西吗?

摘自:

打开终端并按照以下步骤操作:

  • 下载ez_setup.py并使用目标Python版本运行它。脚本将下载适当的版本并为您安装:
    curlhttps://bootstrap.pypa.io/ez_setup.py -o-| python

  • 请注意,您可能需要以超级用户权限调用命令才能安装到系统Python:
    curlhttps://bootstrap.pypa.io/ez_setup.py -o-| sudo python

  • 或者,可以将Setuptools安装到用户本地路径:
    wgethttps://bootstrap.pypa.io/ez_setup.py -O-| python---用户