Google Cloud SDK无法安装'.exe; .bat; .com'未被识别的命令 [英] Google Cloud SDK failed to install '.exe;.bat;.com' is not a recognized command

查看:54
本文介绍了Google Cloud SDK无法安装'.exe; .bat; .com'未被识别的命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 10笔记本电脑上安装Google Cloud SDK.我尝试删除安装文件夹中的空白,并将路径添加到我的环境变量中.完整的错误是:

I'm trying to install google cloud SDK on a windows 10 laptop. I tried removing the whitespace in the install folder, and added the path to my environmental variables. The full error is:

Output folder: C:\Users\user\Documents
Downloading Google Cloud SDK core.
Extracting Google Cloud SDK core.
Create Google Cloud SDK bat file: C:\Users\user\Documents\cloud_env.bat
Installing components.
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' is not recognized as an internal or external command,
operable program or batch file.
Failed to install.  

我的环境变量路径:

C:\ Users \ user \ DocumentsC:\ windows \ system32

C:\Users\user\Documents C:\windows\system32

edit:我相信我的问题是由Google SDK安装过程中尝试运行批处理文件引起的.批处理文件由于某种原因而被识别(尽管我已确认存在),因此我认为我的路径有问题,或者我的网络管理员禁用了批处理文件.

edit: I believe my problem is caused by the google SDK installation process trying to run a batch file. The batch file is not being recognized for some reason (although I verified it exists) so I'm thinking something is wrong with my path, or my network admin disabled batch files.

推荐答案

在这种情况下,您需要将变量添加到Windows环境变量配置中.

In this case, you need to add the variables to your windows environmental variables configuration.

为此,请按WIN + X,然后单击系统".

To do that, press WIN + X and then click on System.

在左侧,选择高级系统设置".单击环境变量.

On the left side, select the Advanced System Settings. Click on Environment Variables.

在系统变量面板上,选择路径",然后单击编辑"按钮.

At the system variables panel, choose Path and then click the Edit button.

您可以添加环境变量及其从那里开始的路径.

You can add the Environmental variables along with their path from there.

这篇关于Google Cloud SDK无法安装'.exe; .bat; .com'未被识别的命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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