【问题标题】:Path problem when mount Google Drive in Google Colab在 Google Colab 中挂载 Google Drive 时的路径问题
【发布时间】:2021-04-15 03:57:18
【问题描述】:

我已成功将 Google Drive 挂载到 Google Colab 中。 现在我尝试将文件从云端硬盘复制到 Google Colab,但我看到一个错误:cp: cannot stat 'MyDrive/lab2/methods_Nd.py': No such file or directory 但是该文件存在于驱动器上。 我使用的命令是:

# Mount Google Drive
from google.colab import drive
drive.mount('/content/drive')

!cp MyDrive/lab2/methods_Nd.py methods_Nd.py 

如果有人遇到类似问题,我会很高兴知道解决方案

【问题讨论】:

    标签: python google-drive-api google-colaboratory


    【解决方案1】:

    不是提问的正确地方。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-09-30
      • 2023-04-03
      • 2021-11-24
      • 2020-12-01
      • 1970-01-01
      • 2020-12-05
      • 2020-03-08
      • 1970-01-01
      相关资源
      最近更新 更多