GoogleAuth: ModuleNotFoundError: No module named 'google.colab'
00:57 08 Jun 2019

I want to import data from google drive to a data frame. But my code breaks down at the 'from google.colab import auth' step. It says google.colab module not found.

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

  from pydrive.auth import GoogleAuth
  from pydrive.drive import GoogleDrive
  from google.colab import auth
  auth.authenticate_user()

  import gspread
  from oauth2client.client import GoogleCredentials

  gc = gspread.authorize(GoogleCredentials.get_application_default())

Error message:

ModuleNotFoundError: No module named 'google.colab'

python-3.x jupyter google-authentication