[英]-bash: aws: command not found
I'm on macOS Mojave Version 10.14.5.我使用的是 macOS Mojave 版本 10.14.5。
I was following the instructions here我按照这里的说明操作
Installing the AWS CLI 安装 AWS CLI
when I got to the part to type当我开始打字的时候
aws --version aws--版本
in terminal, and got the response在终端,并得到回应
-bash: aws: command not found -bash:aws:找不到命令
Here's a screenshot of terminal这是终端的屏幕截图
I looked at the other posts similar to this on stack overflow , but they seem to apply to different contexts.我在 stack overflow上查看了与此类似的其他帖子,但它们似乎适用于不同的上下文。 They have not helped.他们没有帮助。
you need to install python and pip on your mac in order to install the awscli.您需要在 Mac 上安装 python 和 pip 才能安装 awscli。 After the installation of python and pip, please use following command to install aws cli with latest version from AWS.安装 python 和 pip 后,请使用以下命令从 AWS 安装最新版本的 aws cli。
sudo pip install awscli --force-reinstall --upgrade须藤 pip install awscli --force-reinstall --upgrade
Install python version 3 or higher And Use this command to download aws cli with python3安装 python 版本 3 或更高版本并使用此命令使用 python3 下载 aws cli
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
sudo /usr/local/bin/python3 awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
This command works good for me这个命令对我有用
sudo apt install awscli
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.