Discussions>ImportError: No module named google.protobuf>

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.

2 votesLP262.00
1 Answers

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
Couldn't find what you were looking for?and we will find an expert to answer.
How helpful was this page?