Use pyinstaller packaged .py program

Use pyinstaller packaged .py program

For example packaged D: / filename.py file in the Desktop directory

  • The open cmd directory to D: / Desktop

  • Enter the command pyinstaller -F filename.py can be found in the dist directory filename.exe

    In addition to all the generated files exe files can be deleted

Further -F to produce a single executable file may be used -D, which is generating a directory (comprising a plurality of files) as an executable program.

Guess you like

Origin www.cnblogs.com/woxiaosade/p/11297853.html