使用 PyInstaller 编译 PyQt5 Python 应用时遇到问题
Trouble Compiling PyQt5 Python app with PyInstaller
我看到一些帖子说这个问题已经解决了,但我仍然无法使用 Python 3.6.4、PyQt 5.10.1 和 Pyinstaller 3.3.1 成功编译.
收到大量警告(如下所示)并且生成的可执行文件无法运行。
WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\users\justin\appdata\local\programs\python\python36-32\lib\site-packages\PyQt5\Qt\plugins\bearer\qgenericbearer.dll type errors.
我尝试在我的命令中包含 python 目录,但没有成功。当前使用此命令:
pyinstaller --paths "C:\Users\Justin\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\PyQt5\Qt\bin" "..\main.py"
有人 运行 关注这个问题吗?
api-ms-win-crt-runtime-l1-1-0.dll
是 Visual C++ 2015 Redistributable 包的一部分。
好吧,我发现其他缺失的模块导致了 .exe 问题。我仍然遇到所有这些 api-ms-win 错误,但我的应用程序运行正常。
我看到一些帖子说这个问题已经解决了,但我仍然无法使用 Python 3.6.4、PyQt 5.10.1 和 Pyinstaller 3.3.1 成功编译.
收到大量警告(如下所示)并且生成的可执行文件无法运行。
WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\users\justin\appdata\local\programs\python\python36-32\lib\site-packages\PyQt5\Qt\plugins\bearer\qgenericbearer.dll type errors.
我尝试在我的命令中包含 python 目录,但没有成功。当前使用此命令:
pyinstaller --paths "C:\Users\Justin\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\PyQt5\Qt\bin" "..\main.py"
有人 运行 关注这个问题吗?
api-ms-win-crt-runtime-l1-1-0.dll
是 Visual C++ 2015 Redistributable 包的一部分。
好吧,我发现其他缺失的模块导致了 .exe 问题。我仍然遇到所有这些 api-ms-win 错误,但我的应用程序运行正常。