setuptools easy_install mac error

Ber*_*hot 3 python macos setuptools easy-install

我正在尝试在我的mac上设置easy_install.但我收到以下错误.

安装运行安装的Setuptools检查/Library/Python/2.7/site-packages/中的.pth文件支持错误:无法在安装目录中创建或删除文件尝试在安装目录中添加或删除文件时发生以下错误:

[Errno 13]许可被拒绝:'/ Library /Python/2.7/site -packages/test -easy-install-789.pth'

您指定的安装目录(通过--install-dir, - prefix或distutils默认设置)是:

/Library/Python/2.7/site-packages/

dam*_*ois 8

再次尝试使用sudo python ...能够写入'/Library/Python/2.7/site-packages/

  • 你需要sudo`python`命令,而不是`curl`命令.请注意,您必须完全信任bootstrap.pypa.io/ez_setup.py上的人员以此方式运行此类命令. (3认同)