ModuleNotFoundError: No module named 'google_auth_oauthlib'
I have found the error. When I installed the google-auth-oauthlib module via pip, it was installed as a module in the anaconda3 library. But when I run python from the command line, it uses the version from my system, which doesn't have this module.
I had the same issue. Was resolved by using:
sudo pip install google-auth-oauthlib
the sudo was necessary, not sure why, maybe someone else can eleborate.
If you use conda
instead of pip
:
conda install google-auth google-auth-oauthlib