LoginSignup
5
5

More than 5 years have passed since last update.

OS X El Capitan (10.11)にaws cli をインストール

Posted at

El Capitanにアップデートしたらaws cliのアップデートが出来なくなってしまいました。

Installing collected packages: six, python-dateutil, 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-7.1.0-py2.7.egg/pip/basecommand.py", line 223, in main
........

上記の様なエラーがでます。pythonはよくわからないんですが、とりあえずsixってパッケージがアンインストール出来ないようです。

pip uninstall six

とやってもダメです。ちなみにOSXに最初から入っているpythonです。
色々考えるのが面倒なのでここから3系をダウンロードして別途pythonをインストール。
そうすると/usr/local/binにpython3.5,pip3.5その他のシンボリックリンクが貼られるので、これを使用してインストール。そして、インストールされたawsへ/usr/local/binからシンボリックリンクを貼りました。

pip uninstall awscli
php3.5 install awscli
cd /usr/local/bin
ln -s /Library/Frameworks/Python.framework/Versions/3.5/bin/aws aws
aws --version
aws-cli/1.8.13 Python/3.5.0 Darwin/15.0.0
5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5