当我尝试在google colab上安装google驱动器时,出现此错误。有帮助吗?enter image description here
答案 0 :(得分:0)
这对您有用吗?:
from google.colab import drive
drive.mount('/content/gdrive')
with open("/content/gdrive/My Drive/hello.npy", 'wb') as outfile:
np.save(outfile, data)
答案 1 :(得分:0)
此代码将起作用。
from google.colab import drive
drive.mount('/content/drive')
执行此代码后,将要求您授予驱动器访问权限。 之后,您将可以通过以下命令浏览驱动器目录:
cd drive //Change directory to drive folder
cd My Drive //Change directory to your Google Drive folder
ls //List of drive folder