No module named google.protobuf

618    Asked by Bhaanumatishukla in Devops , Asked on Jul 1, 2021

I'm getting the following error when I try to run Google's deep dream

ImportError: No module named google.protobuf

I also installed sudo install protobuf. Right now, I'm executing python 2.7 OSX Yosemite 10.10.3

I couldn't able to find a solution to this question on the web. What I thought, Due to deployment location we're getting this error. Can anyone please help me? How do I fix an Importerror No module named google.protobuf error?

 

Answered by Dipika Agarwal

importerror: no module named google.protobuf

Answer: If you are running python 2.7.11 or any other related versions, we have another possibility.

sudo pip install protobuf

In case, If you are in a anaconda environment, You have to use

conda install protobuf



Your Answer

Interviews

Parent Categories