相关疑难解决方法(0)

OSX El Capitan:sudo pip install OSError:[Errno:1]不允许操作

当我跑:

sudo pip install ipython
Run Code Online (Sandbox Code Playgroud)

我收到以下错误

OSError:[Errno:1]不允许操作:'/System/Library/Frameworks/Python.framework/Versions/2.7/share'

执行的最后一个命令尝试创建上面给出的目录.

此外,以下命令无法在不提供任何错误的情况下安装iPython.

sudo pip install --user python
Run Code Online (Sandbox Code Playgroud)

(我在Mac OS X El Capitan上,以防此操作系统上的其他人看到同样的问题.)

pip failed-installation ipython osx-elcapitan

126
推荐指数
9
解决办法
11万
查看次数

Ansible角色/包 - Ansible Galaxy - 安装MAC OSX时出错

我试图通过CLI在Mac OS X El Capitan上安装ansible-galaxy角色

$ ansible-galaxy install -r requirements.yml
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

ERROR! Unexpected Exception: (setuptools 1.1.6 (/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python), Requirement.parse('setuptools>=11.3'))
the full traceback was:

Traceback (most recent call last):
  File "/usr/local/bin/ansible-galaxy", line 73, in <module>
    mycli = getattr(__import__("ansible.cli.%s" % sub, fromlist=[myclass]), myclass)
  File "/Library/Python/2.7/site-packages/ansible/cli/galaxy.py", line 38, in <module>
    from ansible.galaxy.role import GalaxyRole
  File "/Library/Python/2.7/site-packages/ansible/galaxy/role.py", line 35, in <module>
    from ansible.playbook.role.requirement import RoleRequirement
  File "/Library/Python/2.7/site-packages/ansible/playbook/__init__.py", line 25, in <module>
    from ansible.playbook.play import Play
  File "/Library/Python/2.7/site-packages/ansible/playbook/play.py", line 27, in <module>
    from ansible.playbook.base import Base …
Run Code Online (Sandbox Code Playgroud)

python ansible ansible-galaxy

14
推荐指数
1
解决办法
6872
查看次数