ImportError: No module named googleapiclient.discovery
Solution 1
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
Solution 2
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.
Ali Al-ali
Updated on July 05, 2022Comments
-
Ali Al-ali almost 2 years
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
-
Gustavo Matias over 3 yearsthis should work in theory and as per their doc, but I had no luck
-
Gustavo Matias over 3 yearsno luck for me, must be doing something wrong? their doc says that should've been enough though.
-
Brookie_C over 2 yearsJust wanted to add a small detail, that you could add "python -m" before the pip command, if you have Python installed and Pip is not recognized.