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

后端 未结 3 964
没有蜡笔的小新
没有蜡笔的小新 2021-02-20 06:40

I want to run the command:

from google.colab import auth

But I am getting this error:

ModuleNotFoundError: No module nam

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-20 07:13

    AFAIK, you can execute the module 'google.colab' from within the notebook environment of colab.research.google.com (it is not a publicly available package)

    OFF-TOPIC: Looking at the tag conda in your question. I assume that you are running the code from your local machine. Please make use of PyDrive to read from google drive on your local machine.

    References:

    1. Google Colaboratory FAQ
    2. PyDrive

提交回复
热议问题