【问题标题】:The application can not locate Python39.dll (126) The specified module could not be found应用程序找不到 Python39.dll (126) 找不到指定的模块
【发布时间】:2021-05-28 22:29:56
【问题描述】:

我尝试使用 pysintaller 从我的 python 项目中创建一个 exe,但我遇到了 错误: 应用程序找不到 Python39.dll (126) 找不到指定的模块。

起初我尝试使用已安装的 Python 3.9,然后尝试安装 2.5 版,但仍然收到相同的错误消息。

2020 年 12 月在 Pywinauto 的 Github 上提到了此问题,但没有适当的解决方案或解决方法。 Pywinauto中使用的Pywin32库似乎与pyinstaller不兼容..

有没有其他方法可以在没有 pyinstaller 的情况下生成 exe?

【问题讨论】:

    标签: python pyinstaller pywinauto


    【解决方案1】:

    生成 exe 的另一种方法是 Nuitka。 例如,Pywinauto 记录器是用 Nuitka 编译的。 你会在https://github.com/beuaaa/pywinauto_recorder/tree/master/bin找到所有编译Pywinauto记录器的文件

    这是允许您编译 Python 模块的命令行:

    python.exe -m nuitka --standalone --mingw64 your_main.py
    

    【讨论】:

      猜你喜欢
      • 2020-10-22
      • 1970-01-01
      • 2010-12-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-14
      • 2020-10-24
      • 2021-11-23
      相关资源
      最近更新 更多