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

couldn't install aws-sam-cli on high sierra

More than 1 year has passed since last update.

I tried this first

brew install aws-sam-cli

error occured.

==> /usr/local/Cellar/aws-sam-cli/0.10.0/libexec/bin/pip install -v --no-binary :all: --ignore-installed /private/tmp/aws-sam-cli-20190131-18609
Last 15 lines from /Users/xxxxxxx/Library/Logs/Homebrew/aws-sam-cli/03.pip:
  Removing source in /private/tmp/pip-install-__gbtfov/PyYAML
  Removing source in /private/tmp/pip-install-__gbtfov/cookiecutter
  Removing source in /private/tmp/pip-install-__gbtfov/aws-sam-translator
  Removing source in /private/tmp/pip-install-__gbtfov/docker
  Removing source in /private/tmp/pip-install-__gbtfov/dateparser
  Removing source in /private/tmp/pip-install-__gbtfov/python-dateutil
  Removing source in /private/tmp/pip-install-__gbtfov/requests
  Removing source in /private/tmp/pip-install-__gbtfov/aws-lambda-builders
  Removing source in /private/tmp/pip-install-__gbtfov/serverlessrepo
  Removing source in /private/tmp/pip-install-__gbtfov/Werkzeug
  Removing source in /private/tmp/pip-install-__gbtfov/Jinja2
  Removing source in /private/tmp/pip-install-__gbtfov/itsdangerous
  Removing source in /private/tmp/pip-install-__gbtfov/botocore
Removed botocore<1.13.0,>=1.12.86 from https://files.pythonhosted.org/packages/8e/b3/b9f7ffa347057fa44c65197864eec6a8a53f5a24f613b1b7b3f2b755cc65/botocore-1.12.86.tar.gz#sha256=24444e7580f0114c3e9fff5d2032c6f0cfbf88691b1be3ba27c6922507a902ec (from boto3>=1.9.56,~=1.9->aws-sam-cli==0.10.0) from build tracker '/private/tmp/pip-req-tracker-w_xk82fh'
Removed build tracker '/private/tmp/pip-req-tracker-w_xk82fh'

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/aws/homebrew-tap/issues

So I tried another option:

pip install aws-sam-cli

error occured again. the error message said like this.

python setup.py egg_info failed with error code 1
pip install --upgrade setuptools --user python
pip install cython --user python

after that, I tried again.

sudo pip install aws-sam-cli

error occured again.

Cannot uninstall 'six'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
sudo pip install aws-sam-cli --ignore-installed six

success..

Why not register and get more from Qiita?
  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
No 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
ユーザーは見つかりませんでした