简体   繁体   中英

Trouble Compiling PyQt5 Python app with PyInstaller

I've seen a few posts saying this issue is resolved in the, but I'm still not able to successfully compile with Python 3.6.4, PyQt 5.10.1, and Pyinstaller 3.3.1.

Getting a ton of warnings (like the one below) and the resulting executable isn't working.

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.

I tried including the python directory in my command, but no dice. Currently using this command:

pyinstaller --paths "C:\Users\Justin\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\PyQt5\Qt\bin" "..\main.py"

Anyone run into this issue?

api-ms-win-crt-runtime-l1-1-0.dll is part of the Visual C++ 2015 Redistributable package.

Download

Well, I found out other missing modules were causing the issue with the .exe. I'm still getting all those api-ms-win errors, but my app runs fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM