Install the third-party module PyInstaller
and enter in the terminal:
pip install PyInstaller
After the installation is complete, perform the packaging operation:
Pyinstaller -F 文件路径
-F Only generate an executable file
with the extension .exe. The path does not contain quotation marks
. After the operation is completed, the second line from the bottom: Appending..., search for the location of the executable file on this line. Successfully packaged.
Script not found python packaging error reasons and solutions