我試圖訓練一個Caffe模型。我的.prototxt文件使用自定義的Python數據和丟失圖層。該程序需要協議緩衝區運行時庫的版本3.2.0,但安裝的版本是2.6.1
當我執行在終端的訓練命令,但是,這引發錯誤:
[libprotobuf FATAL google/protobuf/stubs/common.cc:61] This program requires version 3.2.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".)
terminate called after throwing an instance of 'google::protobuf::FatalException'
我的Python包管理器(PIP)的安裝版本的protobuf的3.2.0,但系統版本爲2.6 .1爲一個名爲libprotoc的軟件包。我不確定如何指定pip protobuf版本是我想用於caffe的版本。
在另一臺安裝了pip和2.6.1版本的protobuf的計算機上安裝了系統版本,除了它說程序需要版本3.3.0而不是版本3.2之外,我被拋出了同樣的錯誤。 0。
最好。
我們需要更多信息。你有多少種不同的Python版本?你使用虛擬環境嗎?這意味着什麼「我的Python包管理器(pip)安裝了protobuf版本3.2.0」?哪個python(如果你有更多的1 pythons)? – phd
即時通訊運行在一個docker conrainer與python 2.7。然而在另一臺計算機上,我運行在Linux上,沒有虛擬容器,但仍然出現錯誤,所以我不相信thē錯誤必須處理該錯誤 –