python利用pyinstaller打包生成exe

1.安装pyinstaller

pip install pyinstaller 是最简单的安装方式

2.要打包的文件目录下,并执行命令

允许一个文件
pyinstaller.exe -F .\ 要打包的py文件

pyinstaller.exe -F .\wei_dian_vbuyCreateOrder.py

posted @ 2023-03-31 23:52  莫贞俊晗  阅读(44)  评论(0编辑  收藏  举报