Python代码打包
- 安装pyinstaller
pip3 install pyinstaller
- 打包
以代码文件名为model.py为例,打包代码如下:
pyinstaller -F model.py