Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

aws-cli not found on macOS

I'm on macOS 10.13 and I've a problem after installed aws-cli. I can't use aws command in my CLI.

I've installed aws-cli with pip 18.0 used this command:

pip install awscli --upgrade --user

After that, aws command didn't work so I've checked the aws-cli install directory with this command:

python -c 'import awscli; print(awscli)'

Output:/Users/XXXXX/Library/Python/2.7/lib/python/site-packages/awscli/__init__.pyc

And I add it the output in my PATH directory, under the PATH for python. PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin/python3:${PATH} export PATH=$HOME/Library/Python/2.6/bin:$PATH

Unfortunate, aws commands still doesn't works. I've checked and followed steps at https://docs.aws.amazon.com/cli/latest/userguide/installing.html but wasn't resolve my problem.

What's wrong with my process ? Do you have solution for me ?

like image 557
areuseriouus.eth Avatar asked Dec 05 '22 11:12

areuseriouus.eth


2 Answers

The package is named "awscli". The program is named "aws".

If executing aws does not launch the program, then your path is not correct.

Follow this link for Mac OSX specific instructions:

Adding the AWS CLI Executable to your Command Line Path

In your question, I noticed that you are mixing your PATH statement with both Python 2 and Python 3. For Python 2, you are mixing 2.6 and 2.7. I would clean that up first. Then follow the AWS instructions for installation.

like image 163
John Hanley Avatar answered Dec 09 '22 14:12

John Hanley


The package is named "awscli". The program is named "aws".

If executing aws does not launch the program, then your path is not correct, export aws program path by below command

export PATH=~/.local/bin:$PATH
like image 33
Ashok Reddy Avatar answered Dec 09 '22 16:12

Ashok Reddy