protobuf版本不兼容问题

2023-12-13 12:46:13

报错如下:

[libprotobuf FATAL third_party/protobuf-lite/common.cc:87] This program was compiled against version 3.13.0 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.14.0). Contact the program author for an update. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in “google/protobuf/any.pb.cc”.)
terminate called after throwing an instance of ‘google::protobuf::FatalException’
what(): This program was compiled against version 3.13.0 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.14.0). Contact the program author for an update. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in “google/protobuf/any.pb.cc”.)
Aborted (core dumped)

解决方法:

卸载原来的protobuf
按照tensorboard版本,安装对应的低版本 protobuf

pip install protobuf==0.6.0

文章来源:https://blog.csdn.net/Inuyasha_1314/article/details/134965338
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。