1. 安装工具
- 我使用的是pyinstaller的工具来打包文件的
a) 使用pip安装
- cmd敲命令
pip install pyinstaller https://pypi.tuna.tsinghua.edu.cn/simple
可以直接按装
b) pyinstaller参数
pyinstaller [-h] [-v] [-D] [-F] [--specpath DIR] [-n NAME]
[--add-data <SRC;DEST or SRC:DEST>]
[--add-binary <SRC;DEST or SRC