我一直试图在集群中安装tensorflow。收到此错误。我的机器仅安装了cuda 9.2。它在/ usr / local / cuda和/ usr / local /
之间有一个符号链接。import tensorflow
Traceback (most recent call last):
File "/home/amalli2s/python/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/amalli2s/python/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/amalli2s/python/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/amalli2s/Python-3.6.6/Lib/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/home/amalli2s/Python-3.6.6/Lib/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
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/amalli2s/python/lib/python3.6/site-packages/tensorflow/__init__.py", line 22, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/home/amalli2s/python/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "/home/amalli2s/python/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/home/amalli2s/python/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/amalli2s/python/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/amalli2s/python/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/amalli2s/Python-3.6.6/Lib/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/home/amalli2s/Python-3.6.6/Lib/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
现在,我有以下设置
$LD_LIBRARY_PATH = .../usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:/home/username/cuda/lib64
我已经下载了cudnn 7.2并将其放在用户名/ cuda中。 /usr/local/cuda/bin
也已添加到Path变量中。使用pip install tensorflow-gpu == 1.10.0安装了tensorflow,但找不到ImportError: libcublas.so.9.0
。任何想法如何解决这个问题?还有其他类似问题,但不能解决我的问题,因此再次询问。