【问题标题】:pyinstaller exe created on Windows 10 does not work in Windows 7, cublasLt64_11.dll missing在 Windows 10 上创建的 pyinstaller exe 在 Windows 7 中无法运行,缺少 cublasLt64_11.dll
【发布时间】:2022-10-02 15:07:22
【问题描述】:

我在 Windows 10 机器上使用 pyinstaller 创建了一个 exe。我正在使用 python 3.8.5、cupy-cuda102 和 CUDA 10.2。我还安装了 Visual Studio 2015。该 exe 在我的机器上运行良好。在客户的 windows 7 机器上运行 exe 时,出现错误:\"The program can't start because cublasLt64_11.dll is missing from your computer\"。目标 Windows 7 机器也安装了 CUDA 10.2。

我对为什么它正在寻找 cublasLt64_11.dll (应该属于 CUDA 11)的错误感到困惑。我们之前确实在我的 Windows 10 和 Windows 7 机器上安装了 CUDA 11.4,但后来发现 Windows 7 不支持它,所以我卸载了 CUDA 11.4 并在两台机器上重新安装了 10.2。

我无法直接访问客户的 windows 7 机器,只能在我的 windows 10 机器上创建 exe。有什么建议如何调试/解决这个问题?

  • 您可能需要使用dependency walker 或类似的东西来诊断您构建的可执行文件需要什么dll。然后尝试了解 pyinstaller 如何/为什么将它们添加到构建的依赖项列表中
  • @talonmies 谢谢。我能够通过dependency walker找到它。

标签: python dll pyinstaller cupy


【解决方案1】:

https://youtu.be/2bahg8Gq71I 观看此视频以查看修复

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-02-11
    • 2021-06-29
    • 1970-01-01
    • 2015-10-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多