设置路径以使AWS CLI正常运行 [英] Setting up the path so AWS cli works properly
问题描述
我使用以下方法安装了AWSCLI:
I installed AWSCLI by using:
pip install --upgrade --user awscli
现在,如果我在cmd中键入aws configure,我将得到:'aws'不被识别为内部或外部命令...
Now if I type aws configure in the cmd I get: 'aws' is not recognized as an internal or external command...
我非常确定需要正确设置路径.我知道如何进入环境变量来设置路径,但是我不知道将路径设置为什么,因为我看不到awscli
的安装位置.顺便说一句,我已经安装了boto3,并且可以导入它.
I'm pretty sure the path needs to be set correctly. I know how to go into the environment variables to set the path, but I don't know WHAT to set the path to because I don't see where awscli
is installed. By the way, I already have boto3 installed and I'm able to import that just fine.
我还应该提到我是在Windows中进行设置的.
I should also mention I'm setting this up in windows.
推荐答案
您好,我遇到了同样的问题,并且设法解决了这个问题!
Hi I just had the same problem, and I managed to solve this!
我正在使用python 3.7.0和pip版本18.
I'm using python 3.7.0 and pip version 18.
我使用
pip install --upgrade --user awscli
但是它没有添加到PATH中,我也不知道如何找到它.但是当我决定删除它时,运行
but it is not added in PATH, and I have no idea how to find it.But when I decided to delete it, running
pip uninstall awscli
它告诉我
Uninstalling awscli-1.15.65:
Would remove:
c:\users\riz\appdata\roaming\python\python37\scripts\aws
c:\users\riz\appdata\roaming\python\python37\scripts\aws.cmd
c:\users\riz\appdata\roaming\python\python37\scripts\aws_bash_completer
c:\users\riz\appdata\roaming\python\python37\scripts\aws_completer
c:\users\riz\appdata\roaming\python\python37\scripts\aws_zsh_completer.sh
c:\users\riz\appdata\roaming\python\python37\site-packages\awscli-1.15.65.dist-info\*
c:\users\riz\appdata\roaming\python\python37\site-packages\awscli\*
所以我知道文件安装在
c:\users\riz\appdata\roaming\python\python37\scripts\aws
您只需要将此添加到PATH!祝你好运!
you just need to add this to PATH! Good Luck!
这篇关于设置路径以使AWS CLI正常运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!