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
即可解决。
发布者:admin,转转请注明出处:http://www.yc00.com/web/1754349036a5150135.html
评论列表(0条)