I cannot install aws cli on mac os with pip - awscli: command not found

user3766930 picture user3766930 · Apr 9, 2017 · Viewed 32k times · Source

I tried to follow this tutorial.

This is what I did in the console:

pip3 install --user --upgrade awscli

after that, when I write:

pip3 --version

I'm getting:

pip 9.0.1 from /Users/user/Library/Python/3.4/lib/python/site-packages (python 3.4)

then I wrote:

pip3 install --user --upgrade awscli

this command downloaded awscli and automatically added this:

# Setting PATH for Python 3.4
# The orginal version is saved in .profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:${PATH}"
export PATH

to my .profile

Later on, just to be sure, I wrote:

source ~/.profile

and then when I type:

user$ aws
-bash: aws: command not found

I restarted the terminal with no luck also.

What's the problem here?

Answer

Durul Dalkanat picture Durul Dalkanat · Jun 9, 2017

Here are the two steps to install AWS cli on mac OSX

FIRST

Offical version

  • brew install awscli

SECOND

Development version

  • brew install awscli --HEAD