How to Solve NameError: name 'Credentials' is not defined -- google

Solution: Import the 'Credentials' module

To Solve the error, add the following line to the top of your code.

from google.oauth2.credentials import Credentials

 

For more information:
Python google Credentials