python报错: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://stackoverflow.com/questions/72441758/typeerror-descriptors-cannot-not-be-created-directly
解决方法(已验证):
pip install protobuf==3.19
第二种解决方法(未验证):
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
本博客是博主个人学习时的一些记录,不保证是为原创,个别文章加入了转载的源地址,还有个别文章是汇总网上多份资料所成,在这之中也必有疏漏未加标注处,如有侵权请与博主联系。
如果未特殊标注则为原创,遵循 CC 4.0 BY-SA 版权协议。
posted on 2024-08-10 08:40 Angry_Panda 阅读(19) 评论(0) 编辑 收藏 举报