How to resolve: ModuleNotFoundError: No module named 'google.colab'

Ravaging Care picture Ravaging Care · Oct 3, 2018 · Viewed 62k times · Source

I want to run the command:

from google.colab import auth

But I am getting this error:

ModuleNotFoundError: No module named 'google.colab'

This is required for accessing files on google drive from python. There is a package google but not module colab in it. How to resolve this error?

Answer

Hazeeb M picture Hazeeb M · Sep 26, 2019

You can simply download google-colab and use it in local.

pip install google-colab