关于protobuf报错: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.

在处理数据集训练神经网路时,运到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报错: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,通常即可解决问题。

pip3 install --upgrade protobuf==3.20.1

关于protobuf报错: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.

Original: https://www.cnblogs.com/booturbo/p/16339195.html
Author: BooTurbo
Title: 关于protobuf报错: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.

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/685445/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球