将.py文件转换成.exe文件

1、安装pyinstaller模块

pip install pyinstaller

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

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

猜你喜欢

转载自www.cnblogs.com/xypbk/p/9065933.html
今日推荐