[PYTHON] EXE the application created with PyQt5 with PyInstaller

Roughly speaking

--I was addicted to converting a GUI application using PyQt5 into a Windows EXE with PyInstaller. --By specifying the PyQt path at build time, the build will pass

Status

I was creating a GUI application using PyQt5. The application analyzes the file dragged and dropped into the window and outputs the file in Excel format. When I used PyInstaller to make it into an EXE for distribution, the build succeeded but it could not be executed.

The run-time error message is *** failed to execute script pyi_rth_qt5plugins ***

About the environment

Countermeasures

Set the PyQt path when running pyinstaller.

Example

pyinstaller simple_tool.py --onefile --noconsole -p "C:\Users\User name\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\PyQt5\Qt\bin"

Specify the directory of PyQt library files under site-packages with -p.

The directory where Python is installed depends on the environment, so refer to it as appropriate.

Recommended Posts

EXE the application created with PyQt5 with PyInstaller
Make Scrapy an exe with Pyinstaller
How to get the directory where the EXE built with Pyinstaller exists
When I run the exe file with pyinstaller, my PC crashes.
Automatic update method with python Pyinstaller exe
Convert the program that imports Google's client library to .exe with pyinstaller
I made a GUI application with Python + PyQt5
Get the location of the file where the exe is placed when the exe created by PyInstaller is executed
PyInstaller memorandum Convert Python [.py] to [.exe] with 2 lines
I can't exe a project using PyWebView with PyInstaller
A network diagram was created with the data of COVID-19.
Display only the resources created when acquiring AWS resources with Boto3
The first step to creating a serverless application with Zappa
Reflect the virtual environment created with Miniconda in Jupyter notebook
[Python Kivy] How to create an exe file with pyinstaller
Dynamically import modules at runtime with .exe hardened with pyinstaller --onefile