4

I've successfully downloaded the AWS CLI using PIP onto Mac OSX Yosemite. I'm running Python version 2.7.

I can see the AWS executable in /Library/Frameworks/Python.framework/Versions/2.7/bin.

But when I try to run

aws help

in my Terminal to test that the AWS CLI works, I get

-bash: aws: command not found

Why isn't this working?

1 Answer 1

13

/Library/Frameworks/Python.framework/Versions/2.7/bin will need to be in your path. In your ~/.profile file (create one if necessary) add a line like:

export PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH"

Open a new Terminal window and it should work.

Sign up to request clarification or add additional context in comments.

2 Comments

Ah thanks, that worked! I had tried a similar line in my ~/.profile but this one worked.
Since I installed aws cli tool for my user only I had to do this: export PATH="$HOME/Library/Python/2.7/bin:$PATH" instead. I did this on MacOS Sierra.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.