简体   繁体   中英

Error Using Drive Mount with Google Colab

I had been working on Colab using:

from google.colab import drive 
.mount('/content/gdrive')

事实证明,如果您从 auth 按钮手动复制 auth 代码而不是单击复制按钮,它会起作用

Here is the solution you can try:

As of the new (messed up) update you can not mount using drive._mount anymore (or at least for now). So what you can do is either copy your folder/directory from your other google drive to your current google drive (the account you are logging in to colab with) OR you can simply log out from colab and log in with your Google account that has the drive you want to mount to

Remember use drive.mount and not drive._mount after following the above guideline

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM