我该如何解决"-bash:aws:命令未找到"的问题,awscli错误? [英] How do I resolve the "-bash: aws: command not found" awscli error?

查看:199
本文介绍了我该如何解决"-bash:aws:命令未找到"的问题,awscli错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在使用pip 在macOS上安装AWS CLI版本1.

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

pip install awscli --upgrade --user

但是,当我尝试运行AWS CLI命令时,出现以下错误.

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

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

我已确认安装了AWS CLI.

I've confirmed that the AWS CLI is installed.

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

即使我已经成功安装了 aws 命令,为什么也找不到它?

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

推荐答案

〜/.local/bin 目录添加到您的路径中.例如:

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

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

来源:添加可执行到macOS命令行路径的AWS CLI版本1

这篇关于我该如何解决"-bash:aws:命令未找到"的问题,awscli错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆