项目用到protobuf依赖,因为版本高要降低,安装指定版本依赖后重新进入会自动安装高版本依赖导致错误重现,
应该如何解决

Descriptors cannot not be created directly.,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.,,1. Downgrade the protobuf package to 3.20.x or lower.,2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower)., https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
安装指定的protobuf