ImportError: No module named google.protobuf

I'm using caffe2 and getting this issue

ImportError: No module named google.protobuf

I installed protobuf with pip, but can't understand why I'm getting this error.

protobufcaffe2
2 votesLP190.00
1 Answers
JW234.00
3

If you use anaconda, try to remove other installations from pip and install with conda again. This issue can be when you have mixes or multiple installations. First remove all installations from pip and from anaconda, then make sure you don't have installed protobuf anywhere. After that install protobuf again using your prefered manager: conda or pip

pip uninstall protobuf
conda uninstall protobuf

pip list | grep protobuf  # should be empty
# the same check for conda

# after that
pip install protobuf
# or
conda install protobuf
Reply
Couldn't find what you were looking for?and we will find an expert to answer.
How helpful was this page?