python - Importing caffe results in ImportError: "No module named google.protobuf.internal" (import enum_type_wrapper) -
i installed anaconda python on machine. when start python interpreter , type "import caffe" in python shell, following error:
importerror: no module named google.protobuf.internal
i have following files:
wire_format_lite_inl.h wire_format_lite.h wire_format.h unknown_field_set.h text_format.h service.h repeated_field.h reflection_ops.h message_lite.h message.h generated_message_util.h extension_set.h descriptor.proto descriptor.h generated_message_reflection.h generated_enum_reflection.h dynamic_message.h descriptor.pb.h descriptor_database.h
what files need import work? there "internal.h" file required?
this because have 2 python environments in machine, 1 provided linux distribution(pip
) , other anaconda environment (/home/username/anaconda2/bin/pip
).
try installing protobuf both environments sure
pip install protobuf
/home/username/anaconda2/bin/pip install protobuf