Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 634
AaravM4 Avatar asked Oct 15 '25 05:10

AaravM4


1 Answers

Nevermind I fixed the issue by switching apiclient with googleapiclient

like image 128
AaravM4 Avatar answered Oct 17 '25 20:10

AaravM4



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!