Posted at

OS X EI Caption(10.11.1)でAWS CLIのインストールエラー

More than 3 years have passed since last update.

AWS CLIのインストール

  • AWSに書いてある通り、以下のコマンドインストールしてみる。

curl "" -o ""

sudo python
sudo pip install awscli

  • 最後の awscli のインストールでエラーが発生した。


Installing collected packages: six, python-dateutil, docutils, botocore, awscli

Found existing installation: six 1.4.1
DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling six-1.4.1:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip/", line 211, in main
status =, args)
File "/Library/Python/2.7/site-packages/pip/commands/", line 311, in run
File "/Library/Python/2.7/site-packages/pip/req/", line 640, in install
File "/Library/Python/2.7/site-packages/pip/req/", line 716, in uninstall
File "/Library/Python/2.7/site-packages/pip/req/", line 125, in remove
renames(path, new_path)
File "/Library/Python/2.7/site-packages/pip/utils/", line 315, in renames
shutil.move(old, new)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 302, in move
copy2(src, real_dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 131, in copy2
copystat(src, dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 103, in copystat
os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/var/folders/bx/w4hfkn2n577485gxw5jzzb700000gn/T/pip-EQXcQd-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'

  • 色々、ググってみたら、sixがすでに入っているのが原因みたいなので、以下のコマンドで対応した。

sudo pip install awscli --upgrade --ignore-installed six