ModuleNotFoundError: No module named ‘google.protobuf‘

import caffe不成功,报错import  caffe  ModuleNotFoundError: No module named 'google.protobuf'

方法1:
直接pip install protobuf,
结果import caffe的时候报错:TypeError: Couldn't build proto file into descriptor pool: duplicate file name caffe.proto

方法2:

conda install protobuf
成功

参考链接:解决No module named google.protobuf.internal_小锋子Shawn的博客-CSDN博客

你可能感兴趣的:(caffe,人工智能,深度学习)