The .py file written by python3 is packaged into an exe

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

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324866367&siteId=291194637
Recommended