Reputation: 912
When I run:
from google.colab import auth
I get this error:
ModuleNotFoundError: No module named 'google.colab'
This module is required for accessing files on Google drive from python. How can I resolve this error?
Upvotes: 50
Views: 201064
Reputation: 161
If you want to run google-colab from your local machine and you want to install if via conda, just type the following:
conda install -c conda-forge google-colab
For reference: https://anaconda.org/conda-forge/google-colab
Upvotes: 16
Reputation: 1560
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:
Upvotes: 9
Reputation: 599
You can simply download google-colab and use it in local.
pip install google-colab
Upvotes: 55