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

Published 1 Comment on 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

One comment

  1. Hello. It doesn’t work anyway. My code worked till yesterday, today I got this error and it look there is no way to fix it

Leave a comment

Your email address will not be published.