安装aws cli

时间:2016-03-03 19:03:09

标签: amazon-web-services terminal pip command-line-interface

我在尝试安装aws时收到此消息。任何人对任何事情有什么想法?

Exception:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 209, in main
    status = self.run(options, args)
  File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 317, in run
    prefix=options.prefix_path,
  File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 725, in install
    requirement.uninstall(auto_confirm=True)
  File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 756, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/Library/Python/2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove
    renames(path, new_path)
  File "/Library/Python/2.7/site-packages/pip/utils/__init__.py", line 266, in renames
    shutil.move(old, new)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
    copy2(src, real_dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
    copystat(src, dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
    os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/tmp/pip-TIuiKe-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'

我使用的命令是pip install awscli

3 个答案:

答案 0 :(得分:0)

问题在于许可。安装程序正在尝试写入没有权限的文件夹。

尝试sudo pip install awscli

答案 1 :(得分:0)

看起来它正在尝试卸载6-1.4.1。我遇到过同样的问题。告诉pip忽略已安装的软件包应该可以正常工作。

sudo pip install --ignore-installed awscli

答案 2 :(得分:0)

sudo pip install --upgrade --user awscli

- 升级:告诉pip升级已安装的所有要求