Ubuntu 使用caffe训练模型但得到一个错误

Ubuntu 使用caffe训练模型但得到一个错误,ubuntu,gpu,caffe,pycaffe,Ubuntu,Gpu,Caffe,Pycaffe,[libprotobuf FATAL google/protobuf/stubs/common.cc:61]此程序需要3.5.0版的协议缓冲区运行库,但安装的版本是2.6.1。请更新您的库。如果您自己编译了该程序,请确保您的头来自与链接时间库相同版本的协议缓冲区。(在“google/protobuf/descriptor.pb.cc”中版本验证失败。) 在抛出“google::protobuf::FatalException”实例后调用terminate what():此程序需要3.5.0版的协

[libprotobuf FATAL google/protobuf/stubs/common.cc:61]此程序需要3.5.0版的协议缓冲区运行库,但安装的版本是2.6.1。请更新您的库。如果您自己编译了该程序,请确保您的头来自与链接时间库相同版本的协议缓冲区。(在“google/protobuf/descriptor.pb.cc”中版本验证失败。) 在抛出“google::protobuf::FatalException”实例后调用terminate what():此程序需要3.5.0版的协议缓冲区运行库,但安装的版本是2.6.1。请更新您的库。如果您自己编译了该程序,请确保您的头来自与链接时间库相同版本的协议缓冲区。(在“google/protobuf/descriptor.pb.cc”中版本验证失败。) *在1522327138(unix时间)中止。如果您使用的是GNU date,请尝试“date-d@1522327138” PC:@0x7f7ecf688428 G信号 PID 13649(TID 0x7f7ed1f81b00)从PID 13649接收的SIGABRT(@0x3e900003551);堆栈跟踪:* @0x7f7ecf6884b0(未知) @0x7f7ecf688428 G信号 @0x7f7ecf68a02a中止 @0x7f7ed049c84d__gnu_cxx::_verbose_terminate_handler() @0x7f7ed049a6b6(未知) @0x7f7ed049a701标准::终止() @0x7f7ed049a919 \uuuuuCxA\uTrow @0x7f7ed09e0647 google::protobuf::internal::LogMessage::Finish() @0x7f7ed09e087d google::protobuf::internal::VerifyVersion() @0x7f7df22b1967 protobuf_google_2Protobuf_2fdescriptor_2eproto::InitDefaultsFileDescriptorSetImpl() @0x7f7ed09e0f75 google::protobuf::GoogleOnceInitImpl() @0x7f7df22aba45 protobuf_google_2Protobuf_2fdescriptor_2eproto::InitDefaultsFileDescriptorSet() @0x7f7df22ac5d9 protobuf_google_2Protobuf_2Descriptor_2Proto::AddDescriptorsImpl() @0x7f7ed09e0f75 google::protobuf::GoogleOnceInitImpl() @0x7f7df22acbf5 protobuf_谷歌_2protobuf_2fdescriptor_2proto::AddDescriptors() @0x7f7ed1dfd6ba(未知) @0x7f7ed1dfd7cb(未知) @0x7f7ed1e028e2(未知) @0x7f7ed1dfd564(未知) @0x7f7ed1e01da9(未知) @0x7f7ec6aa9f09(未知) @0x7f7ed1dfd564(未知) @0x7f7ec6aaa571(未知) @0x7f7ec6aa9fa1 dlopen @0x7f7ecfd108dd_PyImport_GetDynLoadFunc @0x7f7ecfd7f54e PyImport LoadDynamicModule @0x7f7ecfd80390(未知) @0x7f7ecfd80658(未知) @0x7f7ecfd8176b PyImport\u ImportModuleLevel @0x7f7ecfceb8b8(未知) @0x7f7ecfd44273 PyObject_调用 @0x7f7ecfe1a487 PyEval_CallObjectWithKeywords

您的问题似乎是使用了错误的libprotobuf版本:

I0329 20:38:56.742496 13649 layer_factory.hpp:77] Creating layer data

(编辑以使其不是一条长线)

err-可能希望清理该问题并向我们指出问题。问题已经解决,我使用pip卸载protobuf和pip安装protobuf==2.6.1。有时您需要添加sudo
[libprotobuf FATAL google/protobuf/stubs/common.cc:61] This program
requires version 3.5.0 of the Protocol Buffer runtime library, but
the installed version is 2.6.1. 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".)