gpt4 book ai didi

python - 在导入 python 时。 ImportError : libcublas. so.9.0: 无法打开共享对象文件: 没有那个文件或目录

转载 作者:太空宇宙 更新时间:2023-11-03 14:01:54 25 4
gpt4 key购买 nike

我尝试了很多解决方案,例如从不同来源安装官方谷歌链接 Google.api...pypi 以及从 git repo 构建。

但每次我都遇到同样的问题ImportError: libcublas.so.9.0:

操作系统:Linux Arch tensorflow:tensorflow-gpu 版本1.5

英伟达:Cuda 9.1 和 Cudnn 7.0.5

Note: tensorflow cpu is working fine

Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/usr/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/usr/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/lib/python3.6/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.6/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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/site-packages/tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import *
File "/usr/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "/usr/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/usr/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/usr/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/lib/python3.6/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.6/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.


for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.

最佳答案

您的错误消息表明 Tensorflow 正在寻找 CUDA 9.0,而默认下载的是 CUDA 9.1。我建议向下恢复到 CUDA 9.0。我刚刚使用 CUDA 9.0 和相应的 cudnn 7.05 安装了 TF 预构建二进制文件,一切运行良好。来自 herehere CUDA 9.1 似乎还有一些问题有待解决。

另请注意,目前 TF 1.5 install guide似乎不正确,因为它为预构建的 TF 指定了 CUDA 8.0 和 cudnn 6.0,而 the release notes指定 cuda 9 和 cudnn 7

关于python - 在导入 python 时。 ImportError : libcublas. so.9.0: 无法打开共享对象文件: 没有那个文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48479571/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com