Python学习笔记 Part11--通过Pyinstaller库生成exe可执行文件

通过Pyinstaller库可以将现有代码生成exe执行文件
1.使用pip install安装Pyinstaller库:pip install pyinstaller
2.导出exe文件:pyinstaller -F SevenDigitV2.py
pyinstall可以使用-h查看帮助获取其他属性
比如-i icon可以指定图标 -n NAME 可以执行名称
--specpath DIR可以指定路径

Python学习笔记 Part11--通过Pyinstaller库生成exe可执行文件

Python学习笔记 Part11--通过Pyinstaller库生成exe可执行文件

Python学习笔记 Part11--通过Pyinstaller库生成exe可执行文件

Python学习笔记 Part11--通过Pyinstaller库生成exe可执行文件

学习链接--Python语言程序设计