py文件生成exe程序

windows:

前提:已安装过python

步骤:

1、cmd中cd到Python安装路径(例如:C:\Users\AppData\Local\Programs\Python\Python36\Scripts\),输入pip install pyinstaller

2、安装完毕后,将需要打包的py文件放入pyinstaller.exe同路径下,cmd中输入pyinstaller -F xxx.py

3、以上路径中会生成两个文件夹(build和dist),exe程序在dist文件夹中

 

posted @ 2019-07-31 15:17  Ternura柔情  阅读(3311)  评论(0编辑  收藏  举报