我已经花了一个星期的时间来纠正我在将tensorflow导入python时遇到的一个问题。现在我已经两次遵循了tensorflow的ubuntu16.04安装说明。https://www.tensorflow.org/install/install_linux
当尝试导入tensorflow时,我得到的信息是:salvo@AMD ~ $ source ~/tensorflow/bin/activate bash
(tensorflow) salvo@AMD ~ $ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
Traceback (most recent call last):
File "", line 1, in
File "/home/salvo/tensorflow/local/lib/python2.7/site-packages/tensorflow/__init__.py", line 24, in
from tensorflow.python import *
File "/home/salvo/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 51, in
from tensorflow.python import pywrap_tensorflow
File "/home/salvo/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/home/salvo/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/salvo/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/salvo/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
ImportError: libcudnn.so.5: cannot open shared object file: No such file or directory
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
因为一些常见的原因和解决办法。包括整个堆栈跟踪
在请求帮助时显示此错误消息。在
系统运行的是linuxmint18.1
python是2.7
我没有足够的经验来理解“”或
有人能解释一下这个问题吗?在