簡體   English   中英

TX2 Protobuf上的tensorflow

[英]tensorflow on tx2 protobuf

嗨我已經使用安裝了tensorflow
https://devtalk.nvidia.com/default/topic/1038957/jetson-tx2/tensorflow-for-jetson-tx2-/post/5278617/#5278617

當我運行python腳本時,出現以下錯誤:

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 "external/protobuf_archive/src/google/protobuf/any.pb.cc".)

拋出“ google :: protobuf :: FatalException” what()實例后調用終止方法:該程序需要協議緩沖區運行時庫的3.5.0版,但已安裝的版本為2.6.1。 請更新您的圖書館。 如果您自己編譯程序,請確保標頭與鏈接時庫來自相同版本的協議緩沖區。 (版本驗證在“ external / protobuf_archive / src / google / protobuf / any.pb.cc”中失敗。)已中止(核心已轉儲)

pip show protobuf i get Version: 3.6.1
Summary: Protocol Buffers
Home-page: https://developers.google.com/protocol-buffers/
Author: protobuf@googlegroups.com
Author-email: protobuf@googlegroups.com
License: 3-Clause BSD License
Location: /home/nvidia/vitualenv/lib/python2.7/site-packages
Requires: setuptools, six
Required-by: tensorflow-gpu, tensorboard

有人有一些想法如何解決這個問題?

謝謝

終於我明白了。 最后,我必須在python文件的開頭import tensorflow 除了這一解決方案,沒有其他解決方案對我有用。

我不理解為什么。 如果有人知道答案,您能解釋一下為什么嗎?

謝謝

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM