我遇到了错误
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
即使文件存在并且已设置PATH
和LD_LIBRARY_PATH
。我正在使用tensorflow-gpu 1.9.0
路径包含以下文件夹:
堆栈跟踪
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
答案 0 :(得分:1)
原来是驱动程序问题。我回到Ubuntu 16.04,重新安装了Ubuntu和Nvidia驱动程序,并且能够毫无问题地安装Tensorflow_gpu。