How to Solve NameError: name 'GoogleCredentials' is not defined -- oauth2client

Solution: Import the 'GoogleCredentials' module

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

from oauth2client.client import GoogleCredentials

 

For more information:
Python oauth2client GoogleCredentials