Categories
Et Cetera

Python Google Analytics Reporting API v4 – ModuleNotFoundError: No module named ‘oauth2client’

Following the guide at https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/service-py and getting the below error?

Traceback (most recent call last):
File "HelloAnalytics.py", line 4, in
from oauth2client.service_account import ServiceAccountCredentials
ModuleNotFoundError: No module named 'oauth2client'

The solution is to upgrade your Python oauth2client library. See below:

pip install --upgrade oauth2client

Leave a Reply

Your email address will not be published. Required fields are marked *