在处理数据集训练神经网路时,运到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,通常即可解决问题。
pip3 install --upgrade protobuf==3.20.1
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/
转载文章受原作者版权保护。转载请注明原作者出处!