I am trying to run Google's deep dream. For some odd reason I keep getting
ImportError: No module named google.protobuf
after trying to import protobuf. I have installed protobuf using sudo install protobuf
. I am running python 2.7 OSX Yosemite 10.10.3.
I think it may be a deployment location issue but i cant find anything on the web about it. Currently deploying to /usr/local/lib/python2.7/site-packages.
In my case I
downloaded the source code, compiled and installed:
for python I located its folder(python) under source code, and ran commands:
Not sure if this could help you..
I had this problem to when I had a google.py file in my project files.
It is quite easy to reproduce.
main.py:
import tensorflow as tf
google.py:
print("Protobuf error due to google.py")
Not sure if this is a bug and where to report it.
I got the same error message when I tried to use Tensor Flow. The solution was simply to uninstall Tensor Flow and protobuf:
And reinstall it again: pip installation of Tensorflow. Currently, this is:
I installed the protobuf with this command:
(you should check the version of protobuf)
when I command pip install protobuf, I get the error:
If you have the same problem as me, you should do the following commands.
pip install --ignore-installed six sudo pip install protobuf
There is another possibility, if you are running a python 2.7.11 or other similar versions,
is ok.
But if you are in a anaconda environment, you should use