我正在尝试安装easy_install,好吧......亲自看看:
sh setuptools-0.6c11-py2.6.egg
处理setuptools-0.6c11-py2.6.egg
将setuptools-0.6c11-py2.6.egg复制到/Library/Python/2.6/site-packages
将setuptools 0.6c11添加到easy-install.pth文件中
将easy_install脚本安装到/ usr / local / bin
error: /usr/local/bin/easy_install: Permission denied
如何授予我的计算机权限?我尝试用友好的声音告诉它,“计算机,我特此授予您安装easy_install的权限”,但这不起作用 .
4 回答
使用sudo .
我也会调查MacPorts .
编辑(5年后):我现在建议Homebrew而不是MacPorts .
你应该使用sudo . 您需要输入密码 .
从显示的路径来看,您可能在OS X 10.6中使用Apple提供的Python 2.6 . 如果是这样,请注意Apple已经在
/usr/bin
中为您轻松安装了easy_install
. 只需输入easy_install
;如果程序包尝试安装脚本,则可能需要使用sudo easy_install
. 如果您正在使用另一个Python(您自己安装的Python),则需要为其安装单独版本的setuptools
(或更新的Distribute
) .