Python3.6 install pyinstaller and use

Environment: (1) windows7 /

   (2) Install python3.6 environment

   (3) python script (play.py)

 For parameters of pyinstaller, please refer to https://blog.csdn.net/BearStarX/article/details/81054134

The first step is to install pyinstaller

Open cmd, enter pip3 install pyinstaller in the command line

 

 

The second step uses pyinstaller to convert the .py file to an .exe file

 

 

 (1) Enter the directory where you want to store the .exe file

(2) The absolute path of the .py file should be added after -F

After packaging, some files are generated, the files are in the automatically produced dish folder, and the file path is in the penultimate line

             

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/duyaya/p/12708764.html