回溯(最近通話最後一個): 文件「/usr/local/lib/python3.4/dist-packages/tensorflow/python/ INIT .py「,第61行,在 from tensorflow.python import pywrap_tensorflow 文件」/usr/local/lib/python3.4/dist-packages/tensorflow/python/pywrap_tensorflow.py「,第28行,在 中_pywrap_tensorflow = swig_import_helper() swig_import_helper中的第24行文件「/usr/local/lib/python3.4/dist-packages/tensorflow/python/pywrap_tensorflow.py」 _mod = imp.load_module('_ pywrap_tensorflow',fp,pathname,描述) 文件「/usr/lib/python3.4/imp.py」,第2行43,在load_module 回報load_dynamic(名稱,文件名,文件) 導入錯誤:/opt/Xilinx/Vivado/2015.1/lib/lnx64.o/libstdc++.so.6:版本`GLIBCXX_3.4.19' 未找到(所要求的/ USR/local/lib目錄/ python3.4/DIST-包/ tensorflow /蟒蛇/ _pywrap_tensorflow.so)錯誤在Python 3.4 imporing tensorflow 「無法加載本地TensorFlow運行」
在處理上述異常,另一個異常:
回溯(最近通話最後一個): 文件「image_resize.py」,第10行,在 導入tensorflow爲tf 文件「/usr/local/lib/python3.4/dist-packages/tensorflow/ init .py」,第24行,在 fr om tensorflow.python import * 文件「/usr/local/lib/python3.4/dist-packages/tensorflow/python/ init .py」,line 72,in raise ImportError(msg) ImportError:Traceback(最新最後調用): 文件 「/usr/local/lib/python3.4/dist-packages/tensorflow/python/ 初始化 py」 爲61行,在 從tensorflow.python進口pywrap_tensorflow 文件「/ usr/local/lib/python3.4/dist-packages/tensorflow/python/pywrap_tensorflow.py「,第28行,在 _pywrap_tensorflow = swig_import_helper() 文件」/usr/local/lib/python3.4/dist-packages /tensorflow/python/pywrap_tensorflow.py「,第24行,在swig_import_helper中 _mod = i mp.load_module('_ pywrap_tensorflow',fp,路徑名,描述) 文件「/usr/lib/python3.4/imp.py」,第243行,在load_module中 return load_dynamic(name,filename,file) ImportError:/選擇/賽靈思/ Vivado/2015.1/lib中/ lnx64.o /的libstdC++ so.6:版本`GLIBCXX_3.4.19' 未找到(由/usr/local/lib/python3.4/dist-packages/tensorflow/python/要求_pywrap_tensorflow.so)
無法加載天然TensorFlow運行時。
對於一些常見的原因和解決方案。尋求幫助時,請在錯誤消息上方包含整個堆棧跟蹤 。
我使用Ubuntu的14.4 和Python 3.4版
您是如何安裝TensorFlow?對於Linux和Python 3.4,你可以試試這個:https://www.tensorflow.org/install/install_linux#python_34 – Neal
感謝您的回覆。 –
我試過你的鏈接。我得到同樣的錯誤@尼爾 –