ImportError: libcudart.so.7.0: cannot open shared object file: No such file or directory
ImportError: libcudart.so.7.0: cannot open shared object file: No such file or directory
[xx_xx@xxxx ~]$ python multiply.py
Traceback (most recent call last):
File "multiply.py", line 2, in <module>
import tensorflow as tf
File "/home/luohao/.usr/bin/python2.7.10/lib/python2.7/site-packages/tensorflow/__init__.py", line 4, in <module>
from tensorflow.python import *
File "/home/luohao/.usr/bin/python2.7.10/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 22, in <module>
from tensorflow.python.client.client_lib import *
File "/home/luohao/.usr/bin/python2.7.10/lib/python2.7/site-packages/tensorflow/python/client/client_lib.py", line 35, in <module>
from tensorflow.python.client.session import InteractiveSession
File "/home/luohao/.usr/bin/python2.7.10/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 11, in <module>
from tensorflow.python import pywrap_tensorflow as tf_session
File "/home/luohao/.usr/bin/python2.7.10/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
_pywrap_tensorflow = swig_import_helper()
File "/home/luohao/.usr/bin/python2.7.10/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
ImportError: libcudart.so.7.0: cannot open shared object file: No such file or directory
当我执行python命令时,"ImportError"错误occurs.Some通过在/etc/profile中添加"export LD_LIBRARY_PATH=/usr/local/cuda-5.5/lib:/usr/local/cuda-5.5/lib64"解决了它。我尝试了但没有effect.I 通过执行 whereis 命令在 /usr/share/man/man7/libcudart.so.7 中找到 "libcudart.so.7.0",但不知道下一步该怎么做才能解决它。
出现此错误是因为加载程序在您的系统上找不到 7.0 版的 CUDA 运行时。 TensorFlow requires CUDA 7.0.
从您问题中的路径 (/usr/local/cuda-5.5/...
) 看来您已经安装了 CUDA 5.5。解决方案是将您的 CUDA 运行时升级到 7.0 版,可从 NVIDIA here.
[xx_xx@xxxx ~]$ python multiply.py
Traceback (most recent call last):
File "multiply.py", line 2, in <module>
import tensorflow as tf
File "/home/luohao/.usr/bin/python2.7.10/lib/python2.7/site-packages/tensorflow/__init__.py", line 4, in <module>
from tensorflow.python import *
File "/home/luohao/.usr/bin/python2.7.10/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 22, in <module>
from tensorflow.python.client.client_lib import *
File "/home/luohao/.usr/bin/python2.7.10/lib/python2.7/site-packages/tensorflow/python/client/client_lib.py", line 35, in <module>
from tensorflow.python.client.session import InteractiveSession
File "/home/luohao/.usr/bin/python2.7.10/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 11, in <module>
from tensorflow.python import pywrap_tensorflow as tf_session
File "/home/luohao/.usr/bin/python2.7.10/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
_pywrap_tensorflow = swig_import_helper()
File "/home/luohao/.usr/bin/python2.7.10/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
ImportError: libcudart.so.7.0: cannot open shared object file: No such file or directory
当我执行python命令时,"ImportError"错误occurs.Some通过在/etc/profile中添加"export LD_LIBRARY_PATH=/usr/local/cuda-5.5/lib:/usr/local/cuda-5.5/lib64"解决了它。我尝试了但没有effect.I 通过执行 whereis 命令在 /usr/share/man/man7/libcudart.so.7 中找到 "libcudart.so.7.0",但不知道下一步该怎么做才能解决它。
出现此错误是因为加载程序在您的系统上找不到 7.0 版的 CUDA 运行时。 TensorFlow requires CUDA 7.0.
从您问题中的路径 (/usr/local/cuda-5.5/...
) 看来您已经安装了 CUDA 5.5。解决方案是将您的 CUDA 运行时升级到 7.0 版,可从 NVIDIA here.