from google.protobuf.internal import enum_type_wrapper ImportError: No module named google.protobuf

来源:互联网 发布:adams数据导出 编辑:程序博客网 时间:2024/06/11 09:03

error:

Traceback (most recent call last):  File "<stdin>", line 1, in <module>  File "/home/kzl/caffe/python/caffe/__init__.py", line 37, in <module>    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver  File "/home/kzl/caffe/python/caffe/pycaffe.py", line 51, in <module>    import caffe.io  File "/home/kzl/caffe/python/caffe/io.py", line 50, in <module>    from caffe.proto import caffe_pb2  File "/home/kzl/caffe/python/caffe/proto/caffe_pb2.py", line 6, in <module>    from google.protobuf.internal import enum_type_wrapperImportError: No module named google.protobuf.internal

resons:

在Linux上使用anaconda的话,会使用anaconda自带的Python的包,所以原来在usr/local usr/lib等地方的python包不管你再怎么弄都不会有结果的.chong xin zhuang  yi xia  jiu  hao  le.

solve:

/home/username/anaconda2/bin/pip install protobuf

sucessful~~

阅读全文
0 0
原创粉丝点击