TypeError: Descriptors cannot 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.
If you cannot immediately regenerate your protos, some other possible workarounds are:
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).
执行ER-NERF数据处理步骤2报错解决
在当前conda环境下
pip uninstall protobuf
重新安装3.19.0
pip install protobuf==3.19.0
标签:3.19,cannot,12,protobuf,will,软件工程,2023,pip,your From: https://www.cnblogs.com/wzs-study/p/17871028.html