小编Ikh*_*wan的帖子

tensorflow-gpu 1.8.0 ImportError:libcudnn.so.7:无法打开共享对象文件:没有这样的文件或目录

我刚刚安装了

乌班图18.04

NVIDIA GPU驱动程序390

CUDA工具包版本9.0(包含所有补丁)

CUDNN 7.0.5

点击此链接 https://github.com/markjay4k/Install-Tensorflow-on-Ubuntu-17.10-/blob/master/Tensorflow%20Install%20instructions.ipynb

我使用 Virtualenv 代替 conda 进行张量流安装

安装后,由于此错误,我无法在 python 中导入tensorflow模块

Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/kai/tensorflow/local/lib/python2.7/site-packages/tensorflow/__init__.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "/home/kai/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "/home/kai/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, …
Run Code Online (Sandbox Code Playgroud)

python python-2.7 tensorflow

3
推荐指数
1
解决办法
2574
查看次数

标签 统计

python ×1

python-2.7 ×1

tensorflow ×1