Search code examples
amazon-web-servicespython-2.7pipcommand-line-interface

AWS CLI not working on Mac OSX Yosemite: "-bash: aws: command not found"


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?


Solution

  • /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.