LoginSignup
36
8

More than 3 years have passed since last update.

AWS CLIをpipインストールした際のエラーを解決する

Last updated at Posted at 2017-11-09

状況

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系の差異を埋めてくれるユーティリティライブラリとのこと.

36
8
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
36
8