ImportError: libcublas.so.9.0: cannot open shared object file: no such file or directory.

安装cuda 9.1,cudnn 9.1和tensorflow 1.6后,导入tensorflow时,报如下错误:

ImportError: libcublas.so.9.0: cannot open shared object file: no such file or directory
Failed to load the native TensorFlow runtime.

错误原因:tensorflow 1.6还不支持cuda 9.1
解决办法:重新安装cuda 9.0和cudnn 9.0
cuda旧版本下载地址:https://developer.nvidia.com/cuda-toolkit-archive

安装cuda 8.0,cudnn 8.0和tensorflow 1.6后,也会报类似上述错误
错误原因:tensorflow 1.6需要cuda 9.0
解决办法1:安装tensorflow 1.4,其只需要cuda 8.0
解决办法2:重新安装cuda 9.0和cudnn 9.0

你可能感兴趣的:(机器学习,异常处理)