Can't Mount Google Drive in Colab in Local Runtime

Viewed 1291

I'm trying to use Google Colab in a local runtime and can't seem to load my Google Drive. I try from google.colab import drive drive.mount('/content/drive')

but I always get

ModuleNotFoundError                       Traceback (most recent call last)

<ipython-input-1-d5df0069828e> in <module>
----> 1 from google.colab import drive
      2 drive.mount('/content/drive')

ModuleNotFoundError: No module named 'google.colab'````

2 Answers
from google.colab import drive
drive.mount("/content/drive")

maybe try putting it in this format, If it does not work try changing your runtime

The google.colab libraries are be available if you are running on your local machine.

Instead, you can use the Google Drive desktop client in order to make your Drive files available on your local machine. See: https://www.google.com/drive/download/

Related