ImportError: No module named 'google'

烈酒焚心 提交于 2019-12-20 03:39:25

Failed to include caffe_pb2, things might go wrong!
Traceback (most recent call last):
  File "test_model.py", line 5, in <module>
    import caffe
  File "/opt/share0/guowuwei/caffe_root/caffe/python/caffe/__init__.py", line 4, in <module>
    from .proto.caffe_pb2 import TRAIN, TEST
  File "/opt/share0/guowuwei/caffe_root/caffe/python/caffe/proto/caffe_pb2.py", line 7, in <module>
    from google.protobuf.internal import enum_type_wrapper
ImportError: No module named 'google'

 

sudo pip install protobuf or

conda install protobuf

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!