Skip to content
Advertisement

Path problem when mount Google Drive in Google Colab

I have successfully mounted Google Drive into Google Colab. Now I try to copy a file from Drive to Google Colab, but I see an error:cp: cannot stat 'MyDrive/lab2/methods_Nd.py': No such file or directory But that file exists on the Drive. The commands I use are:

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

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

If someone had a similar problem, I will be glad to know the solution

Advertisement

Answer

Not the right place to ask questions.

User contributions licensed under: CC BY-SA
11 People found this is helpful
Advertisement