admin管理员组

文章数量:1530518

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).

在跑python代码的时候遇到了上述问题。

只需在终端运行:

pip uninstall protobuf
pip install protobuf==3.19.0

即可解决。

本文标签: regenerateimmediatelyworkaroundsprotos