首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装gcloud SDK

无法安装gcloud SDK
EN

Stack Overflow用户
提问于 2020-03-24 13:41:23
回答 1查看 3.1K关注 0票数 0

当我试图安装google时,我得到了以下错误:

错误:

(gcloud.components.update)无法从服务器获取组件列表。检查网络设置,然后再试一次。这将安装使用Google平台所需的所有核心命令行工具。安装失败。

在重新安装python (v3.7.0)之后,我添加了路径,并添加了CLOUDSDK_PYTHON环境变量以确保。现在,当我尝试安装时,安装只需挂起:

如果我通过执行install.bat来尝试安装槽终端,它在请求向google发送诊断信息之后也会陷入困境:

代码语言:javascript
复制
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

在那之后什么都没有印出来。

EN

回答 1

Stack Overflow用户

发布于 2020-03-25 01:39:59

似乎"(gcloud.components.update)无法从服务器获取组件列表“错误可能是由您的环境中的一些代理或防病毒引起的,我建议您尝试在vm中或使用其他网络中进行干净的安装。

此外,我还在问题跟踪器上找到了类似的错误,并且团队在comment10上给出了一个解决方案,而且,正如您在问题跟踪器上看到的那样,有时这种行为是因为Python安装在默认的"Program“位置,所以您可以通过更改python的位置来尝试它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60832257

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档