简体   繁体   English

DLIB:导入错误:/usr/local/cuda/lib64/libcudnn.so.7:文件太短

[英]DLIB: ImportError: /usr/local/cuda/lib64/libcudnn.so.7: file too short

I have recently installed Dlib using pip.我最近使用 pip 安装了 Dlib。 But when I am importing it it is giving the following error:但是当我导入它时,它给出了以下错误:

ImportError: /usr/local/cuda/lib64/libcudnn.so.7: file too short

In libcudnn.so.7 is nothing.在 libcudnn.so.7 中什么都不是。 Please help me in resolving this problem.请帮我解决这个问题。

I tried almost all the solutions here and on the github issues related to the issue and none of them seemed to work.我在这里和与该问题相关的 github 问题上尝试了几乎所有的解决方案,但似乎没有一个有效。 Eventually, I tried to cat the contents of my libcudnn.so files and turns out they were empty.最后,我想cat的我libcudnn.so文件和曲折的内容出他们是空的。 Downloaded them again, copied them to the right place again, and it all worked.再次下载它们,再次将它们复制到正确的位置,一切正常。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法打开库“libcudnn.so.7”; dlerror: libcudnn.so.7: LD_LIBRARY_PATH: /usr/local/cuda-10.0/lib64: - Could not dlopen library 'libcudnn.so.7'; dlerror: libcudnn.so.7: LD_LIBRARY_PATH: /usr/local/cuda-10.0/lib64: Anaconda ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found - Anaconda ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found Tensorflow:ImportError:libcudnn.so.7:无法打开共享对象文件:没有这样的文件或目录 - Tensorflow: ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory tensorflow-gpu 1.8.0 ImportError:libcudnn.so.7:无法打开共享对象文件:没有这样的文件或目录 - tensorflow-gpu 1.8.0 ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory OSError:CUDA lib64路径无法位于/ usr / lib64中 - OSError: The CUDA lib64 path could not be located in /usr/lib64 ImportError:即使/usr/lib64/python2.7/lib-dynload/_ssl.so可用,也不会发生名为_ssl的模块 - ImportError: No module named _ssl occurring even when /usr/lib64/python2.7/lib-dynload/_ssl.so is available fc18 导入错误:/lib64/libstdc++.so.6:找不到版本“CXXABI_1.3.9” - ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found ImportError:/lib64/libc.so.6:导入张量流后找不到版本`GLIBC_2.15' - ImportError: /lib64/libc.so.6: version `GLIBC_2.15' not found after importing tensorflow / usr / lib / python和/ usr / lib64 / python有什么区别? - What's the difference between /usr/lib/python and /usr/lib64/python? Colab PyTorch | 导入错误:/usr/local/lib/python3.7/dist-packages/_XLAC.cpython-37m-x86_64-linux-gnu.so - Colab PyTorch | ImportError: /usr/local/lib/python3.7/dist-packages/_XLAC.cpython-37m-x86_64-linux-gnu.so
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM