Skip to content
Advertisement

ImportError: libcudart.so.7.0: cannot open shared object file: No such file or directory

JavaScript

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.

Advertisement

Answer

This error is being raised because the loader cannot find version 7.0 of the CUDA runtime on your system. TensorFlow requires CUDA 7.0.

From the path in your question (/usr/local/cuda-5.5/...) it looks like you have CUDA 5.5 installed. The solution is to upgrade your CUDA runtime to version 7.0, which is available from NVIDIA here.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement