其他分享
首页 > 其他分享> > 关于protobuf报错:If this call came from a _pb2.py file, your generated code is out of date and must be r

关于protobuf报错:If this call came from a _pb2.py file, your generated code is out of date and must be r

作者:互联网

 

 

 

 在处理数据集训练神经网路时,运到protoc版本相关的报错,If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. 

解决方法:将protobuf 4.21.1版本降级到3.20.x,通常即可解决问题。

 

标签:3.19,protoc,regenerated,code,报错,file
来源: https://www.cnblogs.com/booturbo/p/16339195.html