所以我有 python 版本 3.8.12,在尝试构建 cloudrun 应用程序时,我收到错误:
ERROR: gcloud failed to load: module 'collections' has no attribute 'Mapping'
Run Code Online (Sandbox Code Playgroud)
现在,当我尝试再次运行并安装 Gcloud SDK 时,出现错误:
Welcome to the Google Cloud SDK! Traceback (most recent call last): File "/Users/eshanchatty/downloads/./google-cloud-sdk/bin/bootstrapping/install.py", line 12, in <module>
import bootstrapping File "/Users/eshanchatty/Downloads/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line 46, in <module>
from googlecloudsdk.core.updater import update_manager File "/Users/eshanchatty/Downloads/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 39, in <module>
from googlecloudsdk.core.console import progress_tracker File "/Users/eshanchatty/Downloads/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)
这是什么原因造成的,我该如何解决这个问题?