简体   繁体   English

ImportError:libcudart.so.7.0:无法打开共享对象文件:没有这样的文件或目录

[英]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

When I execute python command, a "ImportError" error occurs.Some solved it by adding "export LD_LIBRARY_PATH=/usr/local/cuda-5.5/lib:/usr/local/cuda-5.5/lib64" in the /etc/profile.I try it but do no effect.I find the "libcudart.so.7.0" in /usr/share/man/man7/libcudart.so.7 by executing the whereis command and have no idea what should I do next to solve it. 当我执行python命令时,出现“ImportError”错误。有些人通过在/ etc / profile中添加“export LD_LIBRARY_PATH = / usr / local / cuda-5.5 / lib:/usr/local/cuda-5.5/lib64”来解决它我尝试但没有效果。我通过执行whereis命令在/usr/share/man/man7/libcudart.so.7中找到“libcudart.so.7.0”,并且不知道我接下来要做什么来解决它。

This error is being raised because the loader cannot find version 7.0 of the CUDA runtime on your system. 由于加载程序无法在系统上找到CUDA运行时的7.0版,因此引发此错误。 TensorFlow requires CUDA 7.0. TensorFlow需要CUDA 7.0。

From the path in your question ( /usr/local/cuda-5.5/... ) it looks like you have CUDA 5.5 installed. 从问题中的路径( /usr/local/cuda-5.5/... )看起来你已经安装了CUDA 5.5。 The solution is to upgrade your CUDA runtime to version 7.0, which is available from NVIDIA here . 解决方案是将您的CUDA运行时升级到7.0版,这可以从NVIDIA 这里获得

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 更快的RCNN:libcudart.so.7.0:无法打开共享对象文件:没有这样的文件或目录 - Faster RCNN:libcudart.so.7.0: cannot open shared object file: No such file or directory 导入错误:libcudart.so.10.1:无法打开共享对象文件:没有这样的文件或目录 - ImportError: libcudart.so.10.1: cannot open shared object file: No such file or directory 导入错误:libcudart.so.8.0:无法打开共享对象文件:没有这样的文件或目录* | 我的系统中有 cuda9.0 而不是 cuda 8 - ImportError: libcudart.so.8.0: cannot open shared object file: No such file or directory* | I have cuda9.0 in my system and not cuda 8 TensorFlow:libcudart.so.7.5:无法打开共享对象文件:没有这样的文件或目录 - TensorFlow: libcudart.so.7.5: cannot open shared object file: No such file or directory ImportError:libcublas.so.8.0:无法打开共享对象文件:没有这样的文件或目录(共享Linux) - ImportError: libcublas.so.8.0: cannot open shared object file: No such file or directory (Shared Linux) Pygame:ImportError:libSDL_ttf-2.0.so.0:无法打开共享对象文件:没有这样的文件或目录 - Pygame: ImportError: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory Tensorflow-ImportError:libcublas.so.8.0:无法打开共享对象文件:没有这样的文件或目录 - Tensorflow- ImportError: libcublas.so.8.0: cannot open shared object file: No such file or directory Jupyter:ImportError:libcusolver.so.8.0:无法打开共享库文件:没有这样的文件或目录 - Jupyter: ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory ImportError:libexslt.so.0:无法打开共享库文件:没有这样的文件或目录 - ImportError: libexslt.so.0: cannot open shared object file: No such file or directory Raspberry Pi“ ImportError:libavg / avg.so:无法打开共享库文件:没有这样的文件或目录” - Raspberry Pi “ImportError: libavg/avg.so: cannot open shared object file: no such file or directory”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM