【发布时间】: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