I installed the aws cli according to the offical Amazon directions.
sudo pip install awscli
However, aws
is nowhere to be found in my path. The installation seems to have been successful. There are a number of files located at /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/awscli
, however there are no executables named aws
. My python version is 3.3.4, my pip version is 1.5.4, and running this command on OS X 10.9. What could be wrong?
Thanks!
An alternative way is to install the aws-cli package via methods found at https://cloudacademy.com/blog/how-to-use-aws-cli/. This has worked for me :)
Can use
pip show awscli
to find the installation location.Edit the
paths
file directly if you have admin rights.Definitely go with the top answer if you don't have admin rights, but if you do then I would highly recommend directly editing the
paths
files, located at/etc/paths
.Use your favorite editor and simply paste the desired path on a new line:
Sample
paths
file:Paste at the top or bottom or in whatever order you would like the locations searched for binaries (in the event there are binaries with duplicate names).
Using the
paths
file saves you the hassle of remembering the concatenation syntax or the potential trouble if you write an faulty export statement.From http://docs.aws.amazon.com/cli/latest/userguide/cli-install-macos.html#awscli-install-osx-path
For Modern macos/OSX, you need to find your
~/Library/Python/$version/bin
directory and add it to your$PATH
. This will help you locate the one whereaws
got installed.So based on that I added this line to my
.bashrc
I had a similar problem on windows 10. I had to add below to
PATH
variablesFor Python:
For PIP:
For awscli to work:
On ubuntu and installed with pip3 without sudo, the correct location to add to my path was
~/.local/bin
: