>>> import tensorflow as tf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import *
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
ImportError: /usr/local/lib/python2.7/dist-packages/tensorflow/python/_pywrap_tensorflow_internal.so: undefined symbol: cudnnConvolutionBiasActivationForward
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
系统:ubuntu 14.0, tensorflow 1.4 , cuda 8.0, cudnn 5.1 条件下显式的错误信息。
原因:Tensorflow1.4,至少需要cudnn6.0的版本。
解决问题:升级cudnn版本,详见:操作步骤
Ubuntu 14.0 + Tensorflow 1.4 错误:需要更高版本的cudnn

在Ubuntu 14.0上运行Tensorflow 1.4时遇到错误,由于系统配备的是cuda 8.0和cudnn 5.1,而Tensorflow 1.4要求cudnn至少为6.0版本。解决此问题的方法是升级cudnn到对应版本,具体操作步骤参见相关指南。
1万+

被折叠的 条评论
为什么被折叠?



