Search code examples
pythonyoutube-apiyoutube-data-apigoogle-api-client

from apiclient.discovery import build ModuleNotFoundError: No module named 'apiclient.discovery'


I'm trying to use the python google-api-python-client for a Youtube Data API project but when I run the following line:

from apiclient.discovery import build

I get the following eror:

from apiclient.discovery import build ModuleNotFoundError: No module named 'apiclient.discovery'

import apiclient runs fine but importing discovery returns an error.

I already checked the top answers from ImportError: No module named apiclient.discovery, but to no avail.

When I run python --version: I get Python 3.7.6


I'm running MacOs Catalina


Solution

  • Nevermind I fixed the issue by switching apiclient with googleapiclient