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 protobuf
pip uninstall google
pip install google
pip install protobuf
pip install google-cloud

Solution 2:

create an __init__.py in "google" folder.

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

Hopefully it will work.