Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named 'google'

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

My scenario is a bit different and I could not find a solution from similar posts here.

like image 295
redwolf_cr7 Avatar asked Mar 23 '16 16:03

redwolf_cr7


2 Answers

According to https://github.com/googleapis/google-api-python-client#installation, you need to install the google-api-python-client package:

pip install --upgrade google-api-python-client 
like image 126
Saber Avatar answered Sep 23 '22 23:09

Saber


Use this both installation and then go ahead with your Python code:

pip install google-cloud pip install google-cloud-vision 
like image 41
Darshit Shah Avatar answered Sep 24 '22 23:09

Darshit Shah