ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
2018-01-28 16:26
2181 查看
今天用了下面的命令:
pip install tensorflow-gpu然后运行程序的时候出现了下面的错误信息:
......low/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/home/idc/anaconda3/envs/imagecaption/lib/python3.5/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/home/idc/anaconda3/envs/imagecaption/lib/python3.5/imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
这是因为我装了tensorflow-gpu 1.5版本,而我用的是cuda 8.0和cudnn6.0,1.5版本要求cuda 9.0,我的做法就是回滚:
pip install tensorflow-gpu==1.4
然后运行就没有报错了。
pip install tensorflow-gpu然后运行程序的时候出现了下面的错误信息:
......low/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/home/idc/anaconda3/envs/imagecaption/lib/python3.5/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/home/idc/anaconda3/envs/imagecaption/lib/python3.5/imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
这是因为我装了tensorflow-gpu 1.5版本,而我用的是cuda 8.0和cudnn6.0,1.5版本要求cuda 9.0,我的做法就是回滚:
pip install tensorflow-gpu==1.4
然后运行就没有报错了。
参考文献
[1].tensorflow暂未兼容cuda9.0, 安装cuda8.0.http://blog.csdn.net/line290/article/details/78534828相关文章推荐
- ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory解决方案
- ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory
- ImportError: libcusolver.so.8.0: 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.0: cannot open shared object file: No such file or directory
- PyCharm ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory 解决办法
- ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory
- OSError: libcudart.so.7.5: cannot open shared object file: No such file or directory
- sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory
- ubuntu16.04 Error: libcudart.so.7.5: cannot open shared object file: No such file or directory最新解决方案
- Yolo 9000:OSError: libdarknet.so: cannot open shared object file: No such file or directory
- nginx启动报错:/usr/local/nginx/sbin/nginx: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
- ImportError: libgnuradio-core-3.3.0.so.0: cannot open shared object file: No such file or directory
- 报错:/application/zabbix/sbin/zabbix_server: error while loading shared libraries: 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
- error while loading shared libraries: libXXX.so.x: cannot open shared object file: No such file or directory .
- ImportError: libopencv_core.so.3.1: cannot open shared object file: No such file or directory
- error while loading shared libraries: libtest.so: cannot open shared object file: No such file or directory
- Error: libcudart.so.7.5: cannot open shared object file: No such file or directory
- ./ProjectC: error while loading shared libraries: libProjectC.so: cannot open shared object file: No such file or directory