报错;AttributeError: module ‘google.protobuf.internal.containers’ has no attribute ‘MutableMapping’
解决方案:
版本不一致
(avod) [root@localhost avod]# protoc --version
libprotoc 3.3.0(avod) [root@localhost avod]# pip show protobuf
Name: protobuf
Version: 3.19.1
Summary: Protocol Buffers
Home-page: https://developers.google.com/protocol-buffers/
Author: None
Author-email: None
License: 3-Clause BSD License
Location: /data/dataset1/softwares/Anaconda_installfold/envs/avod/lib/python3.5/site-packages
那么,只要使得二者版本一致即可
(avod) [root@localhost avod]# pip install protobuf==3.3.0
再次运行,ok了