Windows 10上的Google Cloud SDK安装失败 [英] Google Cloud SDK installation fails on Windows 10

查看:262
本文介绍了Windows 10上的Google Cloud SDK安装失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试安装Google Cloud SDK时,失败:

When I tried to install Google Cloud SDK, it fails:


欢迎使用Google Cloud SDK!

要使用Google Cloud SDK,必须在PATH上安装Python。
或者,您也可以将CLOUDSDK_PYTHON环境变量
设置为Python可执行文件的位置。

Google Cloud SDK安装程序现在将退出。

按任意键继续 。 。

Welcome to the Google Cloud SDK!
To use the Google Cloud SDK, you must have Python installed and on your PATH. As an alternative, you may also set the CLOUDSDK_PYTHON environment variable to the location of your Python executable.
Google Cloud SDK installer will now exit.
Press any key to continue . . .

我安装了Python,并在系统变量和环境变量中复制了 system32 路径即使,但仍然失败。出了什么问题?

I installed Python and copied system32 path in system variable and environment variable even, but still fails. What's going wrong?

推荐答案

前段时间我遇到了同样的问题,这是我解决的方法:

I had the same problem some time ago, this is how I solved it:


  1. 卸载cloud sdk(还删除文件夹),卸载python

  2. 重新启动系统

  3. 启动安装程序并选择安装捆绑的python

  4. 当安装程序要求安装路径时,指向 C:\Users\YOUR_USER\AppData\ Roaming\gcloud

  1. uninstall cloud sdk (delete also the folder), uninstall python
  2. reboot you system
  3. launch the installer and select "install bundled python"
  4. when the installer asks for an installation path, point to "C:\Users\YOUR_USER\AppData\Roaming\gcloud"

我在Windows安装中遇到了问题,因为我在默认路径建议的设置上设置了不同的权限,即程序文件(x86)。
重新开始+改变路径对我来说解决了这个问题:)

I had a problem with my windows installation since I had different permissions set on the default path suggested which was "Program Files (x86)". Starting fresh + changing path fixed the issue for me :)

还请查看此页面,以查看是否一切在为您检查

also review this page, to see if everything is in check for you

这篇关于Windows 10上的Google Cloud SDK安装失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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