您的位置:首页 > 产品设计 > UI/UE

This program requires version 3.5.0 of the Protocol Buffer runtime library

2018-01-08 16:39 399 查看
之前编译一个github上的风格迁移的项目时遇到这个问题

This program requires version 3.5.0 of the Protocol Buffer runtime library, but the installed version is 3.0.0.  Please update your library.  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/descriptor.pb.cc".)

此程序需要的版本3.5.0的协议缓冲运行库,但安装的版本3.0.0。请更新您的库。如果你自己编译了这个程序,确保你的头是来自同一版本的协议缓冲区,作为你的链接时间库。(版本验证失败的“谷歌/ protobuf /描述符。铅。CC”。)

主要是因为caffe编译的时候默认的protobuf的版本是2.6.1,而Python通过pip install protobuf 安装的版本是最新版本3.4.0!

而在caffe环境中我们必须统一ProtoBuffer的版本才可以避免各种不易排查的错误!! 

解决办法:

sudo pip uninstall protobuf

然后再重新安装:

sudo pip install protobuf==2.6.1
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐