通过这篇博客解决:https://github.com/onnx/onnx/issues/2434 主要是protobuf的版本不对,如果已经安装anaconda,可以通过conda install protobuf=3.9命令解决。