ImportError: No module named google.protobuf ImportError: No module named google.protobuf python python

ImportError: No module named google.protobuf


Had the same issue and I resolved it by using :

conda install protobuf


You should run:

pip install protobuf

That will install Google protobuf and after that you can run that Python script.

As per this link.


I also have this issue and have been looking into it for a long time. It seems that there is no such problem on python 3+. The problem is actually on google.protobuf

Solution 1:

pip uninstall protobufpip uninstall googlepip install googlepip install protobufpip install google-cloud

Solution 2:

create an __init__.py in "google" folder.

cd /path/to/your/env/lib/python2.7/site-packages/googletouch __init__.py

Hopefully it will work.