当我试图安装google时,我得到了以下错误:
错误:
(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在那之后什么都没有印出来。
发布于 2020-03-25 01:39:59
似乎"(gcloud.components.update)无法从服务器获取组件列表“错误可能是由您的环境中的一些代理或防病毒引起的,我建议您尝试在vm中或使用其他网络中进行干净的安装。
此外,我还在问题跟踪器上找到了类似的错误,并且团队在comment10上给出了一个解决方案,而且,正如您在问题跟踪器上看到的那样,有时这种行为是因为Python安装在默认的"Program“位置,所以您可以通过更改python的位置来尝试它。
https://stackoverflow.com/questions/60832257
复制相似问题