简体   繁体   English

AWS CLI窗口-在向环境变量添加路径后仍会出现“无法识别'aws'...”的情况?

[英]AWS cli windows - still getting “'aws' is not recognized…” after adding path to environment variables?

Following instructions found here (and elsewhere) I added '%USERPROFILE%\\AppData\\Roaming\\Python\\Python37\\Scripts\\aws' to Path (tried with and without \\aws at the end) 按照此处 (和其他地方)找到的说明,我在路径中添加了'%USERPROFILE%\\ AppData \\ Roaming \\ Python \\ Python37 \\ Scripts \\ aws'(尝试使用和不使用\\ aws)

在此处输入图片说明

I clicked OK everywhere and restartet the CLI, but I am still getting "'aws' is not recognized as an internal or external command, operable program or batch file." 我在任何地方单击“确定”并重新启动CLI,但是我仍然收到“'aws'未被识别为内部或外部命令,可操作程序或批处理文件”的信息。 when typing aws at the command prompt (I restarted it after the path update). 在命令提示符下键入aws时(我在路径更新后重新启动了它)。 Any ideas what I might be missing? 有什么想法可能会丢失吗?

if this is in a windows machine By default, the CLI installs to C:\\Program Files\\Amazon\\AWSCLI (64-bit version) or C:\\Program Files (x86)\\Amazon\\AWSCLI (32-bit version). 如果它在Windows计算机中,则默认情况下,CLI安装到C:\\ Program Files \\ Amazon \\ AWSCLI(64位版本)或C:\\ Program Files(x86)\\ Amazon \\ AWSCLI(32位版本)。 So I guess the PATH that you've added is incorrect. 所以我想您添加的PATH不正确。

try checking this link https://docs.aws.amazon.com/cli/latest/userguide/install-windows.html#awscli-install-windows-path 尝试检查此链接https://docs.aws.amazon.com/cli/latest/userguide/install-windows.html#awscli-install-windows-path

run the command - where aws 运行命令-aws

once you know where it was installed then copy that and it to your path. 一旦您知道它的安装位置,然后将其复制到您的路径。 i hope this helps. 我希望这有帮助。

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

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