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?
Colab allows you to use and share Jupyter notebooks with others without having to download, install, or run anything.
You can simply download google-colab and use it in local.
pip install google-colab
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With