欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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

程序员文章站 2022-07-15 16:46:02
...

在ubuntu上安装tensorflow出现的问题,原因是cuda的环境变量设置问题。

You are setting LD_LIBRARY_PATH in the wrong way, I would recommend to do it this way (which is kind of the standard):

export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH