安装Tensorflow GPU-即使libcublas.so.9.0存在并且在路径中也找不到

时间:2018-07-12 14:16:32

标签: python-3.x ubuntu tensorflow

我遇到了错误

ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

即使文件存在并且已设置PATHLD_LIBRARY_PATH。我正在使用tensorflow-gpu 1.9.0

文件存在: File exists

路径包含以下文件夹:

LD_LIBRARY_PATH

堆栈跟踪

Traceback (most recent call last):
  File "/home/user1/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/home/user1/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/home/user1/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "/home/user1/anaconda3/lib/python3.6/imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
  File "/home/user1/anaconda3/lib/python3.6/imp.py", line 343, in load_dynamic
    return _load(spec)
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

1 个答案:

答案 0 :(得分:1)

原来是驱动程序问题。我回到Ubuntu 16.04,重新安装了Ubuntu和Nvidia驱动程序,并且能够毫无问题地安装Tensorflow_gpu。