Use Pyinstaller To Creat EXE

发布时间 2023-10-04 10:49:54作者: ASyo-S

Use Pyinstaller To Creat EXE

  1. Creat New Folder

  2. Put file in to New Foder

    file:py、ico

  3. Open powershell

  4. Input Command

    Pyinstaller -F -w -i="replace.ico" source.py
    
    -F, --onefile         	Create a one-file bundled executable.
    
    -D, --onedir          	Create a one-folder bundle containing an executable (default)
    
    -w, --windowed, --noconsole
    			Windows and Mac OS X: do not provide a console window for standard
    
    -i			FILE.ico: apply the icon to a Windows executable
    
    -h, --help 		show this help message and exit
    
  5. Close powershell

  6. Completed successfully