在 Google Colab 中挂载 Google 驱动器时的路径问题
Path problem when mount Google Drive in Google Colab
我已成功将 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
如果有人有类似的问题,我会很高兴知道解决方案
不适合提问。
我已成功将 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
如果有人有类似的问题,我会很高兴知道解决方案
不适合提问。