ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory

vinzee

I installed Tensorflow 1.6.0 - GPU version with anaconda in a Python 3.6.4 environment.

When I do import tensorflow as tf, I get the following error:

ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory

The different versions:

  • cudnn : 7.1.1
  • cuda : 9.0.176
  • tensorflow : 1.6.0
  • Ubuntu : 16.04

I am aware of this but it did not solve my problem.

vinzee

I installed the nvidia-cuda-toolkit package:

$ sudo apt install nvidia-cuda-toolkit

and it worked.

I did not find the solution nor on the tensorflow website nor on the nvidia installation page. I found it by luck while looking for a way to get the cuda version with a command line: How to get the cuda version?

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Tensorflow: ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory

ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory Tensorflow

Tensorflow shared library error; ImportError: libcuda.so.1: cannot open shared object file: No such file or directory

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

ImportError: libopencv_hdf.so.4.5: cannot open shared object file: No such file or directory

ImportError libdynet.so: cannot open shared object file, No such file or directory

ImportError: libSM.so.6: cannot open shared object file: No such file or directory

ImportError: libtk8.6.so: cannot open shared object file: No such file or directory

Anaconda ImportError: libSM.so.6: cannot open shared object file: No such file or directory

ImportError: libta_lib.so.0: cannot open shared object file: No such file or directory

ImportError: libGL.so.1: cannot open shared object file: No such file or directory while importing OCC

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

ImportError: libavcodec.so.56: cannot open shared object file: No such file or directory

ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory

ImportError: libgomp.so.1: cannot open shared object file: No such file or directory

Tensorflow: ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory

ImportError: libopencv_hdf.so.3.1: cannot open shared object file: No such file or directory

ImportError: /home/dminstalluser/script/lib/prctl.so: cannot open shared object file: No such file or directory

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

ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory

ImportError: libboost_python.so.1.65.1: cannot open shared object file: No such file or directory

ImportError: libcblas.so.3: cannot open shared object file: No such file or directory

Jupyter: ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory

ImportError: libOpenGL.so.0: cannot open shared object file: No such file or directory

ImportError: libpng16.so.16: cannot open shared object file: No such file or directory

ImportError: libICE.so.6: cannot open shared object file: No such file or directory

ImportError: libtinfo.so.5: cannot open shared object file: No such file or directory

ImportError: libcublas.so.9.0: cannot open shared object file

libgif.so: cannot open shared object file: No such file or directory