protobuf报错:If this call came from a _pb2.py file, your generated code is out of date

protobuf报错:If this call came from a _pb2.py file, your generated code is out of date_第1张图片

 报错显示:要么更新要么降级,或者切换到纯净版python(乱翻译)

尝试 pip install upgrade protobuf显示已经是最新版本

选择降级到3.20或以下版本来解决

解决方法:cmd 输入

pip install--upgrade protobuf==3.20.1

你可能感兴趣的:(北北历险记,pip,python,开发语言)