简体   繁体   English

-bash:aws:找不到命令

[英]-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

use AWS official guide here to ensure you are installing the latest version. 在此处使用 AWS 官方指南以确保您安装的是最新版本。

I have mac and this fixed the issue我有 mac,这解决了问题

$ curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
$ sudo installer -pkg AWSCLIV2.pkg -target /

This command works good for me这个命令对我有用

sudo apt install awscli

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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