我用Pythorch建立了一个程序的exe。它在exe所在的PC机上运行良好,但在另一台PC机上不工作。一个重要错误引发,DLL加载失败。在
我是pytorch和pyinstaller新手,所以我不知道发生了什么。在
重要的是:F:\test>test D:\testData.xml D:\testResult.xml
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\libnvvp;D:\Program Files\Java\jdk-9.0.4\bin;D:\Program Files\Java\jdk-9.0.4\jre\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;D:\Program Files\MATLAB\R2016a\runtime\win64;D:\Program Files\MATLAB\R2016a\bin;D:\Program Files\MATLAB\R2016a\polyspace\bin;D:\FFMPEG\bin;C:\WINDOWS\System32\OpenSSH\;D:\Anaconda3;D:\Anaconda3\Scripts;D:\Anaconda3;D:\Anaconda3\Library\mingw-w64\bin;D:\An

博主使用PyInstaller打包的基于Pytorch的程序在本机运行正常,但在另一台电脑上出现DLL加载失败的错误。错误发生在尝试导入torch._C时。已尝试过增加环境变量、检查依赖库的存在,但问题仍未解决。寻求关于Pytorch、Python和pyinstaller打包的解决方案。
最低0.47元/天 解锁文章
1477

被折叠的 条评论
为什么被折叠?



