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 ?
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With