【发布时间】:2020-03-24 13:41:23
【问题描述】:
当我尝试安装谷歌云 SDK 时,我收到以下错误:
错误:
(gcloud.components.update) 未能从中获取组件列表 服务器。检查您的网络设置,然后重试。这将安装 与 Google 合作所需的所有核心命令行工具 云平台。安装失败。
重新安装python(v3.7.0)后,我添加了路径并添加了CLOUDSDK_PYTHON环境变量以确保。现在,当我尝试安装时,安装只是挂起:
如果我通过执行 install.bat 尝试通过终端进行安装,在请求向 google 发送诊断信息后也会卡住:
Welcome to the Google Cloud SDK!
Active code page: 65001
To help improve the quality of this product, we collect anonymized usage data
and anonymized stacktraces when crashes are encountered; additional information
is available at <https://cloud.google.com/sdk/usage-statistics>. This data is
handled in accordance with our privacy policy
<https://policies.google.com/privacy>. You may choose to opt in this
collection now (by choosing 'Y' at the below prompt), or at any time in the
future by running the following command:
gcloud config set disable_usage_reporting false
Do you want to help improve the Google Cloud SDK (y/N)? n
在那之后没有任何东西被打印出来。
【问题讨论】:
-
也许尝试非GUI版本,看看是否报告了替代错误消息。看来我们可以运行 install.bat ...见 ... cloud.google.com/sdk/docs/downloads-interactive#silent
-
我做了,抱歉我刚刚在问题中指定了,我现在已经编辑了。
-
@guibvieira - 如果您的问题的 solution 对您有用,请不要忘记将答案标记为已接受,以便将来的访问者也可以放心地使用该解决方案。
-
我遇到了同样的问题,但后来我可以通过 Chocolatey 安装它。