引入pytorch 报错 Error loading\Lib\site-packages\torch\lib\fbgemm.dll\ or one of its dependences

问题解决

一、下载dll文件依赖分析工具Dependencies

项目首页 - Dependencies:A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues. - GitCodehttps://gitcode.com/gh_mirrors/de/Dependencies?utm_source=highlight_word_gitcode&word=dependencies&isLogin=1

在此处下载,下载完毕后,解压打开,然后运行 DependenciesGui.exe

在上述文件里搜索。

缺少libomp140.x86_64.dll。解决方法:在https://www.dllme.com/dll/files/libomp140_x86_64#google_vignette 下载某一个版本的dll文件,放到C:\Windows\System32中。

下载完,解压,将这两个文件复制粘贴到C:\Windows\System32。

 

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐