Help us understand the problem. What is going on with this article?

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

状況

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

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away