状況
pipをインストール
$ sudo easy_install pip
AWS CLIをインストール
$ sudo pip install 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:
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 211, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 311, in run
root=options.root_path,
(略)
解決策
どうやらSixというパッケージをアンインストールしようとしてエラーになってるようである.
$ sudo pip install awscli --upgrade --ignore-installed six
これで解決できた.Sixっていうのはpython2系と3系の差異を埋めてくれるユーティリティライブラリとのこと.