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
Not the right place to ask questions.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.