报错:
TypeError: __new__() got an unexpected keyword argument 'serialized_options'
原因分析:
编译安装了 protobuf 3.8.0 , 但 python 里的 protobuf 还是 3.0.0
解决办法:
卸载 python 的 protobuf 3.0.0 bindings 重装 protobuf3.8.0
pip3 uninstall protobuf
pip3 install protobuf==3.8.0