ImportError: cannot import name descriptor_pb2

重新编译protobuf

下载地址:https://github.com/google/protobuf

$cd /path/protobuf/python
$python setup.py build
$python setup.py install #将protobuf安装到anaconda里面

导入路径:

sys.path.append('path/protobuf/python/build/lib')
原文地址:https://www.cnblogs.com/haiyang21/p/7278771.html