您的位置:首页 > 移动开发 > Objective-C

ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory解决方案

2018-04-02 10:43 2481 查看

出现问题:

ImportError: Traceback (most recent call last):  File "/storage/xuminghong/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>    from tensorflow.python.pywrap_tensorflow_internal import *  File "/storage/xuminghong/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>    _pywrap_tensorflow_internal = swig_import_helper()  File "/storage/xuminghong/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)  File "/usr/local/lib/python3.6/imp.py", line 242, in load_module    return load_dynamic(name, filename, file)  File "/usr/local/lib/python3.6/imp.py", line 342, in load_dynamic    return _load(spec)ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

原因

tensorflew(1.7.0)版本与CUDA(8.0.44)版本不匹配

解决:

将tensorflew版本降低为1.4.0pip install --upgrade tensorflow-gpu==1.4或者,安装9.0版本的CUDAsudo apt-get install cuda-9-0

附:版本匹配信息

 





 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐