1、安装pyinstaller模块

pip install pyinstaller

 

2、打开python目录下的scripts文件夹

cmd下,使用pyinstaller -F test.py,运行后会在scripts文件夹下生成build和dist文件夹,生成的exe文件在dict文件夹下。

相关文章: