Pyinstaller onefile 无法在某些 Windows 7 机器上启动 [英] Pyinstaller onefile does not start on some Windows 7 machines

查看:63
本文介绍了Pyinstaller onefile 无法在某些 Windows 7 机器上启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个 exe 文件,它在某些 Windows 机器上运行良好,但在其他机器上运行失败.

I have created an exe file which works fine on some Windows machines and fails on others.

我还没有找到失败的原因.

I could not yet find the cause for failing.

重要数据:

  • x64 exe
  • Windows 7
  • Python 3.5.1
  • pyinstaller 3.0
  • 一个文件

DEBUG 显示如下:

The DEBUG shows the following:

C:\temp\r>mytool_debug.exe
PyInstaller Bootloader 3.x
LOADER: executable is C:\temp\r\mytool_debug.exe
LOADER: homepath is C:\temp\r
LOADER: _MEIPASS2 is NULL
LOADER: archivename is C:\temp\r\mytool_debug.exe
LOADER: Extracting binaries
LOADER: Executing self as child
LOADER: set _MEIPASS2 to C:\temp\_MEI55762
LOADER: Setting up to run child
LOADER: Creating child process
LOADER: Waiting for child process to finish...
PyInstaller Bootloader 3.x
LOADER: executable is C:\temp\r\mytool_debug.exe
LOADER: homepath is C:\temp\r
LOADER: _MEIPASS2 is C:\temp\_MEI55762
LOADER: archivename is C:\temp\r\mytool_debug.exe
LOADER: SetDllDirectory(C:\temp\_MEI55762)
LOADER: Already in the child - running user's code.
LOADER: manifestpath: C:\temp\_MEI55762\mytool.exe.manifest
LOADER: Activation context created
LOADER: Activation context activated
LOADER: Python library: C:\temp\_MEI55762\python35.dll
Error loading Python DLL: C:\temp\_MEI55762\python35.dll (error code 127)
LOADER: Back to parent (RC: -1)
LOADER: Doing cleanup
LOADER: Freeing archive status for C:\temp\r\mytool_debug.exe

窗口中还显示了一条错误消息:

There is also an error message shown in a window:

Entry Point Not Found

The procedure entry point ucrtbase.terminate could not be located in the dynamic link library api-ms-win-crt-runtime-l1-1-0.dll 

当我将所有文件从 C:\temp_MEI55762(引导加载程序已提取所有文件的位置)复制到目录 C:\temp\r(mytool_debug.exe 所在的位置)并执行 mytool_debug.exe 时,它​​可以工作.

When I copy all files from C:\temp_MEI55762 (where the bootloader has extracted all files) to the directory C:\temp\r (where mytool_debug.exe is located) and execute mytool_debug.exe it works.

如前所述,mytool.exe 在其他 Windows 7/8 计算机上运行良好.我发现有 2 台计算机由于上述错误而没有出现.

As said mytool.exe works on other Windows 7/8 computers well. I have found 2 computers where it does not because of above error.

我应该从哪里开始搜索?

Where should I start searching?

推荐答案

安装大约 200 个 Windows 更新后,错误消失了.

After installing around 200 Windows updates the error is gone.

所需更新由 KB2999226

这篇关于Pyinstaller onefile 无法在某些 Windows 7 机器上启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆