OSError: libcudnn.so.7.0: cannot open shared object file: No such file or directory

参考:
【1】ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory
【2】OSError: libcudnn.so.7.0: cannot open shared object file: No such file or directory错误

首先确认是否安装了 cudnn

然后确认环境变量是否正确,例如:

export PATH=/usr/local/cuda-XXX/bin:$PATH  
export LD_LIBRARY_PATH=/usr/local/cuda-XXX/lib64:$LD_LIBRARY_PATH
export LIBRARY_PATH=/usr/local/cuda-XXX/lib64:$LIBRARY_PATH

最后可能的原因:“cuda的路径可能设置错了”
sudo ldconfig /usr/local/cuda-XXX/lib64

OSError: libcudnn.so.7.0: cannot open shared object file: No such file or directory

上一篇:[模板]笛卡尔树


下一篇:Hackintool查看CFG锁显示空白