TensorFlow:ImportError: libcudnn.so.*: cannot open shared object file: No such file or dictionary
来源:互联网 发布:电商推荐算法 编辑:程序博客网 时间:2024/05/17 13:39
环境:
- Ubuntu16.04
- Nvidia 384
- CUDA 8.0
- cuDNN 5
错误
TensorFlow、CUDA、cuDNN的版本关系小白我时常懵懵的,经常出现各种不支持的情况,比如今天安装了TensorFlow1.4,报错:
ImportError: libcudnn.so.6: cannot open shared object file: No such file or dictionary
错误缘由
google了一圈发现, 问题出在 TensorFlow 1.4-gpu 是基于cuDNN6,需要的也就是libcudnn.so.6了。
解决方案:
- Just download cuDNN v6 and follow the steps (Tested on Ubuntu 16.04, CUDA toolkit 8.0 )https://developer.nvidia.com/cudnn
$ tar xvzf cudnn-8.0-linux-x64-v5.1-ga.tgz
$ sudo cp -P cuda/include/cudnn.h /usr/local/cuda/include
$ sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda/lib64
$ sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*
- Now set Path variables
$ vim ~/.bashrc
翻到最底部加上:
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64"
export CUDA_HOME=/usr/local/cuda
参考:http://blog.csdn.net/hungryof/article/details/52746279
阅读全文
0 0
- TensorFlow:ImportError: libcudnn.so.*: cannot open shared object file: No such file or dictionary
- 【报错】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
- 问题ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory的解决方案
- "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"
- Tensorflow报错ImportError: libcublas.so.8.0: 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: libffi.so.6: 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解决方案
- 智能指针
- 用户的浏览商品记录功能代码
- Python 爬虫实战案例 : 微信公众号的爬取
- android之自定义简单不平凡的对话框
- Spring Cloud与Spring Boot微服务实战
- TensorFlow:ImportError: libcudnn.so.*: cannot open shared object file: No such file or dictionary
- PAT 1072. 开学寄语
- 正则grep,sed,awk
- Least Common Multiple
- c++stl之string
- Machine Learning for Encrypted Malware Traffic Classification
- 一个新的开始(非技术贴)
- 精心整理 | 绝对干货,你值的拥有!
- GitHub退出登录账号的路径