exe executable file package python

Tool:

  • ​ Pyinstaller

Installation:

cmd type the command

pip install pyinstaller

Package Package:

  1. Directory into the required package py file

  2. Hold down the shiftkey while the right mouse button to open a command window

  3. Envelope command input

    pyinstaller -F 文件名.py
  4. Common parameters:

    parameter description
    -h Check the module help
    -F Create a separate executable program
    -D Create files stored in the same folder (default value)
    -w Specifies the command line window does not appear (valid only for Windows) is running
    -c Specified using the command line window to run the program (only for Windows and effect and that is the default)
    -i Specifies the program icon back with ico file path
    -n Specifies the program name

Guess you like

Origin www.cnblogs.com/qmuy/p/11442853.html