升级tensorflow1.0到1.3,报错ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory Failed to load the native TensorFlow runtime.

时间:2022-04-14 15:27:57

先定位问题,发现在

/usr/local/cuda/include/

/usr/local/cuda/lib64/

下面只有 libcudnn.so.5

因此,只要下载cudnn6.*版本的文件分别覆盖就可以啦。

sudo cp cuDNN6.*/include/cudnn.h      /usr/local/cuda/include/

sudo cp cuDNN6.*/lib*        /usr/local/cuda/lib64/

sudo ldconfig -v