[英]Pyinstaller fails to find kernel32 dll
目前正在尝试使用 PyInstaller 构建一个 exe。 安装顺利,虽然尝试运行exe时出现异常
Exception ignored in: <function Library.__del__ at 0x000002126637F160>
Traceback (most recent call last):
File "C:\Users\blah\AppData\Local\Programs\Python\Python39\lib\site-packages\pylink\library.py", line 272, in __del__
File "C:\Users\blah\AppData\Local\Programs\Python\Python39\lib\site-packages\pylink\library.py", line 390, in unload
File "C:\Users\blah\AppData\Local\Programs\Python\Python39\lib\ctypes\__init__.py", line 444, in __getattr__
File "PyInstaller\loader\pyimod04_ctypes.py", line 79, in __init__
pyimod04_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'kernel32'. Most likely this dynlib/dll was not found when the application was frozen.
我在其他一些帖子上跟随了领导,并确保安装了 Visual C++ Redistributables,并且还在构建中包含--hidden-import ctypes
无济于事。
基于 Windows 10 - Python 3.9 - PyInstaller 5.0.1
任何帮助都会很棒!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.