尝试在OSX上安装easy_install时权限被拒绝

mrd*_*ole 17 python macos installation easy-install

我正在尝试安装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

错误:/ usr/local/bin/easy_install:权限被拒绝


如何授予我的计算机权限?我尝试用友好的声音告诉它,"计算机,我特此授予您安装easy_install的权限",但这不起作用.

rob*_*ert 12

使用sudo.

sudo sh setuptools-0.6c11-py2.6.egg
Run Code Online (Sandbox Code Playgroud)

我也会调查MacPorts.

编辑(5年后):我现在建议使用Homebrew而不是MacPorts.

  • 我想要喜欢MacPorts,但当我尝试使用PHP的特定库时,我意识到MacPorts想要吸取整个生态系统 (2认同)
  • @peter你应该尝试然后自制.它尝试尽可能使用Mac OS附带的库.此外,它不需要使用sudo (2认同)

Ner*_*ian 5

sudo sh setuptools-0.6c11-py2.6.egg
Run Code Online (Sandbox Code Playgroud)