Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named googleapiclient.discovery

I have python webapp2 application but when I run it I get this error

ImportError: No module named googleapiclient.discovery

what I found in stackoverflow is ImportError: No module named apiclient.discovery

I tried to do what people said but it did not work

EDIT:

pip freeze

enter image description here

like image 687
Ali Al-ali Avatar asked Mar 24 '17 22:03

Ali Al-ali


2 Answers

This is resolved in another thread: ImportError: No module named apiclient.discovery

Also this one worked in our case

pip install --upgrade google-api-python-client

Using python 3.6.5

like image 163
Ananya_Chandraker Avatar answered Oct 13 '22 03:10

Ananya_Chandraker


I had the same issue. I am using the requirements.txt to install the libraries. My requirements.txt had google-api-python-client==1.6.2 and pip install was not installing the lib. I got rid of the version and have only google-api-python-client in the requirements.txt. After that i ran the pip install again and appengine app worked after that.

like image 34
debtmantra Avatar answered Oct 13 '22 02:10

debtmantra