The first step is to install pywin32:
Enter on the cmd command line:
pip install pywin32
The second step is to install pyinstaller
Enter on the cmd command line:
pip install pyinstaller。
Wait for the installation to complete: switch to the directory where the program to be packaged is located in the cmd command line, and directly enter the following command to
pyinstaller -F xxx.py
Packaged program exe file