My program is a selenium automation script that executes when packaged with a Python pyinstaller-f--onefile-w xxx.py
After the execution of the package, the prompt "failed to Excute script xxx"
Have never thought of what went wrong, and then carefully read the next package parameters
-f,–onefile packaged as an EXE file.
-d,–onedir creates a directory that contains EXE files, but relies on many files (the default option).
-c,–console,–nowindowed using the console, no interface (default)
-w,–windowed,–noconsole using Windows, no console
The problem is on-W, because my script is just a program without TK or Wxpython gui windows, only using the console
So repack execute python pyinstaller-f--onefile xxx.py
Executing the EXE file again will bring up a CMD window and then execute the program. Prove that if the program does not make a window, packaging do not use the-w parameter, after the experience is normal.
Pyinstaller played EXE package execution times wrong "failed to Excute" information