AttributeError: 'module' object has no attribute 'text_format'

来源:互联网 发布:达观数据 招聘 编辑:程序博客网 时间:2024/06/05 16:26

 问题: pb2.text_format.Merge(f.read(), self.solver_param) AttributeError: 'module' object has no attribute 'text_format'

解决办法:pip install protobuf==2.6.0


分析: 使用命令进行安装的时候,版本没有达到工程所需的,所以需要升级

0 0
原创粉丝点击