gpt4 book ai didi

windows - Google Cloud SDK 安装程序在 Windows 7 上失败(gcloud 崩溃(UnicodeDecodeError))

转载 作者:可可西里 更新时间:2023-11-01 14:42:29 27 4
gpt4 key购买 nike

我的操作系统是win7。我想安装云SDK。但它“无法安装”。错误消息是:

Output folder: C:\Program Files (x86)\Google\Cloud SDK
Downloading Google Cloud SDK core.
Extracting Google Cloud SDK core.
Create Google Cloud SDK bat file: C:\Program Files (x86)\Google\Cloud SDK\cloud_env.bat
Installing components.
Welcome to the Google Cloud SDK!
ERROR: gcloud crashed (UnicodeDecodeError): 'ascii' codec can't decode byte 0xa4 in position 9: ordinal not in range(128)
If you would like to report this issue, please run the following command:
gcloud feedback
To check gcloud for common problems, please run the following command:
gcloud info --run-diagnostics
ERROR: Cannot use bundled Python installation to update Cloud SDK in
non-interactive mode. Please run again in interactive mode.
If you really want to run in non-interactive mode, please run the
following command before re-running this one:
FOR /F "delims=" %i in ( '""C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin\gcloud.cmd"" components copy-bundled-python'
) DO (
SET CLOUDSDK_PYTHON=%i
)
(Substitute `%%i` for `%i` if in a .bat script.)
Failed to install.

有人可以帮助我吗?

最佳答案

我通过重新安装 google cloud sdk 修复了它。 (如果您无法卸载,只需重命名文件夹:C:\Program Files (x86)\Google\Cloud SDK 为其他名称,然后尝试安装程序)

并通过将CLOUDSDK_PYTHON环境变量设置为C:\Python27\python.exe(python v2.7的安装文件夹)

enter image description here

现在安装应用引擎组件又可以了。

选项2

检查您的配置:gcloud config list 如果您看到:disable_prompts = True。这可能就是为什么谷歌说交互模式被禁用的原因。如果您删除此值,它可能会删除此错误。

关于windows - Google Cloud SDK 安装程序在 Windows 7 上失败(gcloud 崩溃(UnicodeDecodeError)),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42895848/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com