将cudnn5换为cudnn6 libcudnn.so.6: cannot open shared object file: No such file or directory

I have import error: ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory

  1. download cudnn6.0 version (not latest 7.0)
    2.sudo rm -rf /usr/local/cuda/include/cudnn.h
    sudo rm -rf /usr/local/cuda/lib64/libcudnn*
  2. to cudnn untar folders
    sudo cp include/cudnn.h /usr/local/cuda/include/
    sudo cp lib64/lib* /usr/local/cuda/lib64/
  3. cd /usr/local/cuda/lib64/
    sudo chmod +r libcudnn.so.6.0.21
    sudo ln -sf libcudnn.so.6.0.21 libcudnn.so.6
    sudo ln -sf libcudnn.so.6 libcudnn.so
    sudo ldconfig
    It works for me.

你可能感兴趣的:(深度学习)