[英]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.