I'm trying to install the AWSCLI on my Mac (OS 10.14).
First of all, one of the first things I did with this Mac was follow these instructions for upgrading Python, and so my system Python is now 3.7.1 (i.e., this is returned when I enter python --version
).
Steps I've taken:
Now regarding awscli, I first tried simply pip install awscli --upgrade --user
based on the AWS docs here. This was successful, but then bash commands like aws configure
and aws --version
resulted in the response -bash: aws: command not found
.
So, I ran pip uninstall awscli
in hopes of trying a different method. I then followed these instructions for bundled installation. Again, the installation was successful, and again the aws
command cannot be found.
Using guidance posted here, I tried adding export PATH=~/Library/Python/3.7/bin/:$PATH
to my .profile
, but this did not work either. (I tried both overwriting the default export PATH
and adding the above as a separate line - neither worked.)
Potential root cause:
There is an alias for aws
in /usr/local/bin
, however when I click "show original," I get the error original item cannot be found
. I assume the solution lies in fixing this alias, but I'm not sure what it should be pointing to.
Thanks in advance for your assistance.
EDIT: This question is similar to the one posted here, however the issue persists even when not installing with pip install --user
and instead using AWS's bundled installer.