problem description
~/Downloads/caffe$ python
Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import caffe
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/xxx/Downloads/caffe/python/caffe/__init__.py", line 1, in <module>
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer
File "/home/xxx/Downloads/caffe/python/caffe/pycaffe.py", line 15, in <module>
import caffe.io
File "/home/xxx/Downloads/caffe/python/caffe/io.py", line 8, in <module>
from caffe.proto import caffe_pb2
File "/home/xxx/Downloads/caffe/python/caffe/proto/caffe_pb2.py", line 6, in <module>
from google.protobuf.internal import enum_type_wrapper
ImportError: No module named google.protobuf.internal
solutions
sudo pip install easydict
sudo pip install protobuf
Similar Posts:
- Caffe installation and compilation problems – importerror: no module named skimage.io
- Solution of import Cafe error reporting in Python command line
- [Solved] Protobuf & cmake Low Version Error: Could not find a package configuration file provided by “Protobuf” with any of the following names: ProtobufConfig.cmake
- ImportError: No module named caffe.proto [How to Solve]
- [Solved] –go_out: protoc-gen-go: Plugin failed with status code 1.
- caffe2——–ImportError: No module named past.builtins
- [Solved] ModuleNotFoundError: No module named’usysconfigdata u x86 64-u-gnu’
- Go Language compilation and installation protobuf: protoc-gen-go: program not found or is not executable
- docker:ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
- How to Solve ModuleNotFoundError: No module named ‘pip._internal’