pyInstaller库的安装和使用说明

pyInstaller作用:
将.py源代码转换成可执行文件
pyInstaller库是第三方库
使用pip安装第三方库:
(cmd命令行) pip install pyinstaller
pyInstaller库的安装和使用说明
简单的使用:(cmd命令行) pyinstaller -F <文件名.py>
会生成 pycache build dist 三个文件夹,其中前两个可以安全删除
参数:
-h 查看帮助
–clean 清理打包过程中的临时文件
-D,–onedir 默认值,生成dist文件夹
-F, --onefile 在dist文件夹中只生成独立的打包文件
-i<图标文件名.ico 指定打包程序使用的图标文件