相关疑难解决方法(0)

如何使用 Google Cloud SDK 包修复“AttributeError: module 'collections' has no attribute 'Mapping'”?

我尝试在 macOS 上安装 Google Cloud SDK,但显示以下错误。

有人可以帮忙吗?

"Welcome to the Google Cloud SDK!
Traceback (most recent call last):
  File "/Users/kaab/google-cloud-sdk/bin/bootstrapping/install.py", line 12, in <module>
    import bootstrapping
  File "/Users/kaab/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line 46, in <module>
    from googlecloudsdk.core.updater import update_manager
  File "/Users/kaab/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 39, in <module>
    from googlecloudsdk.core.console import progress_tracker
  File "/Users/kaab/google-cloud-sdk/lib/googlecloudsdk/core/console/progress_tracker.py", line 651, in <module>
    class _BaseStagedProgressTracker(collections.Mapping):
AttributeError: module 'collections' has no attribute 'Mapping'"
Run Code Online (Sandbox Code Playgroud)

python google-cloud-sdk

12
推荐指数
1
解决办法
3万
查看次数

标签 统计

google-cloud-sdk ×1

python ×1