Pyinstaller onefile无法在某些Windows 7计算机上启动

Pyinstaller onefile无法在某些Windows 7计算机上启动,windows,pyinstaller,Windows,Pyinstaller,我创建了一个exe文件,它在某些Windows计算机上运行良好,在其他计算机上运行失败 我还没有找到失败的原因 重要数据: x64 exe 视窗7 Python 3.5.1 pyinstaller 3.0 一档 调试将显示以下内容: C:\temp\r>mytool_debug.exe PyInstaller Bootloader 3.x LOADER: executable is C:\temp\r\mytool_debug.exe LOADER: homepath is C:\te

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

我还没有找到失败的原因

重要数据:

  • x64 exe
  • 视窗7
  • Python 3.5.1
  • pyinstaller 3.0
  • 一档
调试将显示以下内容:

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
窗口中还会显示一条错误消息:

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\u MEI55762(引导加载程序已提取所有文件的位置)复制到目录C:\temp\r(mytool\u debug.exe所在的位置)并执行mytool\u debug.exe时,它会工作

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


我应该从哪里开始搜索?

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


所需的更新由

解决。这里讨论了这一点,即致力于构建端解决方案,而不必安装Windows更新:。截至今天(2017年5月9日),仍然没有确定的解决方案。有两种解决方案对某些人有效:

  • 在生成之前,请安装并将ucrt DDL目录添加到系统路径(C:\Program Files\Windows Kits\10\Redist\ucrt或C:\Program Files(x86)\Windows Kits\10\Redist\ucrt\DLL\x64,具体取决于您的系统)

  • 使用Python3.4而不是3.5构建+


缺少的修补程序是:KB2999226谢谢,这成功了。对于所有windows版本来说,这似乎是一个更好的打包页面:需要明确的是,此修补程序是否需要应用于构建应用程序的计算机、运行应用程序的客户端,或者两者都需要?