【问题标题】:Google Cloud SDK installation Python error谷歌云SDK安装Python报错
【发布时间】:2020-04-10 19:07:21
【问题描述】:

尝试在 Windows 10 上安装 Google Cloud SDK 时,我收到以下错误:

我的计算机上安装了 Python,并将 PATH 添加到 Scripts folder

并且还尝试添加到环境变量中:

【问题讨论】:

  • 您似乎安装了最新版本的 Python (Python 3.8)。我会尽量推荐你安装Python 3.7,然后仔细按照documentation这部分进行测试。

标签: python-3.x google-cloud-platform gcloud google-cloud-sdk


【解决方案1】:

Google Cloud SDK CLI 尚不完全支持 Python 3。

除非您熟悉 Google Cloud 和 Python 以及 SDK 库,否则我建议您首先删除 Python 3 并安装 Python 2.7。然后安装 CLI。

您可以在为您的其他开发设置 CLI 后添加 Python 3。

有关 Python 3 的 CLI 支持的详细信息,请在使用 Python 2 设置 CLI 后运行命令 gcloud topic startup

注意:Python 3 GA 支持已在 2.74 版(2019 年 12 月 17 日)中发布。但是,某些功能仍然需要 Python 2.7。

【讨论】:

    【解决方案2】:

    什么对我有用:

    1) 安装 Python(将其添加到 PATH);和
    2) 安装 Google Cloud SDK,但取消选中“Bundled Python”选项。

    【讨论】:

      猜你喜欢
      • 2018-11-14
      • 2021-02-12
      • 2018-12-01
      • 2017-05-11
      • 2018-07-09
      • 1970-01-01
      • 2014-10-16
      • 1970-01-01
      • 2017-12-20
      相关资源
      最近更新 更多