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

Angry Panda / 2024-08-10 / 原文

相关:

https://stackoverflow.com/questions/72441758/typeerror-descriptors-cannot-not-be-created-directly



解决方法(已验证):

pip install protobuf==3.19



第二种解决方法(未验证):

export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python