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.
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.
Comments