最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

已解决If you cannot immediately regenerate your protos, some other possible workarounds are:

业界 admin 3浏览 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).

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

只需在终端运行:

pip uninstall protobuf
pip install protobuf==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).

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

只需在终端运行:

pip uninstall protobuf
pip install protobuf==3.19.0

即可解决。

发布评论

评论列表 (0)

  1. 暂无评论