此环境不支持 google.colab.drive

Gha*_*nem 5 python google-drive-api google-cloud-platform google-colaboratory

我正在使用连接到 Google Cloud 的 Colab 实例来训练使用 NVIDIA A100-SXM4-40GB 的神经模型。

我想从 Google 云端硬盘加载文件,但无法加载。

try:
    from google.colab import drive
    drive.mount('/content/drive', force_remount=True)
except Exception as ex:
    print(ex)
Run Code Online (Sandbox Code Playgroud)

当我运行上面的代码时,我收到此错误:

此环境不支持 google.colab.drive。

问题是什么?

当我尝试使用未连接到 Google Cloud 的 Colab 导入文件时,效果很好。