ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory
来源:互联网 发布:windows xp翻墙 编辑:程序博客网 时间:2024/06/06 04:29
今天在安装TensorFlow1.4.1,安装完成后运行爆出如上错误,这是因为1.3以后的版本需要cuDNN v6.0做支持了,本机上安装的是cuDNN v8.0。看网上教程说要安装低版本的TensorFlow,作者感觉不用,就做了如下尝试。
解决方法如下:
1.先到英伟达的官网下载cudnn-8.0-linux-x64-v6.0的lib包。下载完后是cudnn-8.0-linux-x64-v6.0.solitairetheme8这样的文件。
2.解压该文件:
cp cudnn-8.0-linux-x64-v5.1.solitairetheme8 cudnn-8.0-linux-x64-v5.1.tgz
tar -xvf cudnn-8.0-linux-x64-v5.1.tgz
3.复制文件到/usr/local/cuda/lib64文件夹下,并给相应的权限
sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64/ sudo chmod a+r /usr/local/cuda/lib64/libcudnn*
再运行 import tensorflow as tf 完美解决。
阅读全文
0 0
- 【报错】ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory
- 解决ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory
- ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory
- 问题ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory的解决方案
- import tensorflow 出错libcudnn.so.6: cannot open shared object file: No such file or directory
- TensorFlow:ImportError: libcudnn.so.*: cannot open shared object file: No such file or dictionary
- "libcudnn.so.5 cannot open shared object file: No such file or directory"
- "libcudnn.so.5 cannot open shared object file: No such file or directory"
- ImportError: libffi.so.6: cannot open shared object file: No such file or directory
- ImportError: libffi.so.6: cannot open shared object file: No such file or directory
- ImportError: libghmm.so.1: cannot open shared object file: No such file or directory 解决方案
- ImportError: libmysqlclient.so.18: cannot open shared object file: No such file or directory
- ImportError: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
- ImportError: libmysqlclient.so.18: cannot open shared object file: No such file or directory
- ImportError: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
- ImportError: libcudart.so.7.0: cannot open shared object file: No such file or directory
- caffe遇到 ImportError: libcudart.so.7.5: cannot open shared object file: No such file or directory
- ImportError: libclntsh.so.11.1: cannot open shared object file: No such file or directory解决方案
- random模块有关
- 坚持#第247天~sed和awk进阶
- 【ASM】Oracleasm命令
- hdu1007 Quoit Design 【计算几何+分治】
- servlet介绍
- ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory
- Mali GPU-抽象机器
- 使用线程wait与notify开发阻塞queue
- JAVA流和File类常用总结
- BBEdit for Mac(文字和HTML编辑器)附BBEdit注册码 v12.0.3最新破解版
- SpringBoot Beans管理和自动配置 火推 02
- Android Transition(Android过渡动画)
- Mybatis-Generator配置使用方法
- R中的字符处理函数汇总