1.安装pyinstaller,安装指令:pip install pyinstaller
2.打包文件,pyinstaller -F xxx.py(xxx.py,打包的文件)
-------------------------------------------