I am trying to run Google\'s deep dream. For some odd reason I keep getting
ImportError: No module named google.protobuf
after t
I installed the protobuf with this command:
conda install -c anaconda protobuf=2.6.1
(you should check the version of protobuf)
Locating the google
directory in the site-packages
directory (for the proper latter directory, of course) and manually creating an (empty) __init__.py
resolved this issue for me.
(Note that within this directory is the protobuf
directory but my installation of Python 2.7 did not accept the new-style packages so the __init__.py
was required, even if empty, to identify the folder as a package folder.)
...In case this helps anyone in the future.
In my case, MacOS has the permission control.
sudo -H pip3 install protobuf