参考:https://www.cnblogs.com/qhu-hjx/p/13036551.html
https://www.pythonf.cn/read/71922
一、安装pyinstaller
win10安装python 3.8 ,必须要从第三方库中下载。官网下载的版本不支持python3.8
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz
二、pyinstaller基本命令
-h,--help查看该模块的帮助信息
-F,-onefile
产生单个的可执行文件
-D,--onedir
产生一个目录(包含多个文件)作为可执行程序
-a,--ascii
不包含 Unicode 字符集支持
-d,--debug
产生 debug 版本的可执行文件
-w,--windowed,--noconsolc
指定程序运行时不显示命令行窗口(仅对 Windows 有效)
-c,--nowindowed,--console
指定使用命令行窗口运行程序(仅对 Windows 有效)
-o DIR,--out=DIR
指定 spec 文件的生成目录。如果没有指定,则默认使用当前目录来生成 spec 文件
-p DIR,--path=DIR
设置 Python 导入模块的路径(和设置 PYTHONPATH 环境变量的作用相似)。也可使用路径分隔符(Windows 使用分号,Linux 使用冒号)来分