Convert python files to exe files through pyinstaller
Step 1: It is recommended to use the pip tool to install pyinstaller
cmd-- pip install pyinstaller
Step two:
Directly enter: cmd in the address bar of the target folder. This operation does not need to remember the file path name, just enter the file name directly in the black window command line, and it will be in this folder after generation.
Appear:
Indicates that it was successfully generated and stored in the dist folder. Click to run, or send to your friends.
third step:
Do not enter cmd in the current folder, enter cmd through the system,
The generated files are located in the system default folder:
Error message:
1、unrecognized arguments: -f
pyinstaller -F (F must be uppercase)
2. The file format of pycharm hides the .py suffix by default, and the input file name does not need to be changed or added, otherwise the file name cannot be found