gpt4 book ai didi

python - google-cloud-sdk 安装因 python 语法错误而失败

转载 作者:行者123 更新时间:2023-12-03 14:36:51 27 4
gpt4 key购买 nike

在“Linux supermicro 4.15.0-72-generic#81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux”上,我在执行“sudo apt-get install google-cloud-”时看到这种情况软件开发工具包”

> Reading package lists... Done Building dependency tree        Reading
> state information... Done Suggested packages:
> google-cloud-sdk-app-engine-java google-cloud-sdk-app-engine-python
> google-cloud-sdk-pubsub-emulator google-cloud-sdk-bigtable-emulator
> google-cloud-sdk-datastore-emulator kubectl The following NEW packages
> will be installed: google-cloud-sdk 0 upgraded, 1 newly installed, 0
> to remove and 13 not upgraded. Need to get 0 B/25.0 MB of archives.
> After this operation, 194 MB of additional disk space will be used.
> Selecting previously unselected package google-cloud-sdk. (Reading
> database ... 267451 files and directories currently installed.)
> Preparing to unpack .../google-cloud-sdk_274.0.0-0_all.deb ...
> Unpacking google-cloud-sdk (274.0.0-0) ... Setting up google-cloud-sdk
> (274.0.0-0) ... Compiling
> platform/bq/third_party/yaml/lib3/__init__.py ... File
> "platform/bq/third_party/yaml/lib3/__init__.py", line 284
> class YAMLObject(metaclass=YAMLObjectMetaclass):
> ^ SyntaxError: invalid syntax

谷歌不是我的 friend ,我找不回这是什么原因。这是在“apt升级”之后发生的,所以我拥有所有最新的软件包(python,...)

最佳答案

这是一个 known issue随着 274.0.0 Cloud SDK 版本的发布,这种情况开始发生。即使抛出错误,安装也会继续进行(使用 gcloud info 检查 Cloud SDK 版本)。工程部门知道,他们正在研究它。
当前的解决方法是安装以前版本的 Cloud SDK,例如 272.0.0 和 sudo apt-get install google-cloud-sdk=272.0.0-0 .
更新 :
随着 Cloud SDK version 275.0.0 的发布,该问题已得到解决。 - 使用基于 Linux 的软件包工具安装 Cloud SDK 不应再引发上述错误。如果您仍有问题,请open an Issue Tracker thread under the Cloud SDK component解释您遇到的问题。

关于python - google-cloud-sdk 安装因 python 语法错误而失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59393454/

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