ImportError: No module named 'google'

redwolf_po7 picture redwolf_po7 · Mar 23, 2016 · Viewed 132.5k times · Source

This is not a duplicate. My scenario is a bit different and I could not find a solution from similar posts here. I installed Python 3.5. I ran the pip install google command and verified the modules. Google was present. I installed Anaconda 3.5 and tried to run z sample code. But I'm getting the import error. Please find the screen shot attached. What am I missing? Do I have to link my Spyder to Python installation directory in some way? Why is Spyder unable to google module?

My Python installation directory: C:\Users\XXX\AppData\Local\Programs\Python\Python35 enter image description here

enter image description here

Answer

Saber picture Saber · Dec 23, 2018

According to https://developers.google.com/api-client-library/python/apis/oauth2/v1 you need to install google-api-python-client package:

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