简体   繁体   中英

How do I resolve the "-bash: aws: command not found" awscli error?

I've installed the AWS CLI following Install the AWS CLI version 1 on macOS Using pip .

pip install awscli --upgrade --user

However, when I attempt to run AWS CLI commands, I get the following error.

$ aws --version
-bash: aws: command not found

I've confirmed that the AWS CLI is installed.

$ pip list
Package              Version  
-------------------- ---------
awscli               1.16.279 

Why is the aws command not found even though I've successfully installed it?

Add the ~/.local/bin directory to your path. For example:

# .bashprofile
export PATH=~/.local/bin:$PATH

Source: Add the AWS CLI version 1 Executable to Your macOS Command Line Path

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM