I wrote a program in Python 3.8 using the PyQt5 5.15.10 library. Using pyinstaller (also tried auto-py-to-exe) I get the EXE file of the program. When running on Windows 10 (where I developed the program), the program runs normally. But when running on Windows 7, I get an error:
Failed to execute script 'pyi_rth_pyqt5' due to unhandled exception: [WinError127] The specified procedure was not found: C:\Users\user\AppData\Local\Temp\_MEI23002\PyQt5\Qt5\bin
I tried to prescribe the import of libraries like this:
--paths C:\Users\user\AppData\Local\Temp\_MEI23002\PyQt5\Qt5\bin
It didn't help.
I also made a request without the --onefile parameter.
The folder with QT5 was at the specified path. But that didn't help either.
I solved this problem like this:
If it was possible to solve this problem without installing the old version of Python and libraries, please let me know.