ImportError: No module named googleapiclient.discovery

38,506

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.

Share:
38,506
Ali Al-ali
Author by

Ali Al-ali

Updated on July 05, 2022

Comments

  • Ali Al-ali
    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

    enter image description here

  • Gustavo Matias
    Gustavo Matias over 3 years
    this should work in theory and as per their doc, but I had no luck
  • Gustavo Matias
    Gustavo Matias over 3 years
    no luck for me, must be doing something wrong? their doc says that should've been enough though.
  • Brookie_C
    Brookie_C over 2 years
    Just 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.