当前位置:  开发笔记 > 编程语言 > 正文

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

如何解决《Pyinstalleronefile无法在某些Windows7计算机上启动》经验,为你挑选了1个好方法。

我创建了一个exe文件,在某些Windows机器上工作正常,在其他机器上运行失败.

我还没找到失败的原因.

重要数据:

x64 exe

Windows 7的

Python 3.5.1

pyinstaller 3.0

onefile

DEBUG显示以下内容:

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_MEI55762(引导程序已解压缩所有文件)复制到目录C:\ temp\r \n(mytool_debug.exe所在的目录)并执行mytool_debug.exe时,它可以正常工作.

正如所说的mytool.exe在其他Windows 7/8计算机上运行良好.由于上述错误,我找到了2台计算机.

我应该从哪里开始搜索?



1> kotlet schab..:

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

KB2999226解决了所需的更新


缺少的修补程序是:KB2999226
推荐阅读
保佑欣疼你的芯疼
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有