python3 生成exe文件

工具:
python 3.4.2
pyinstaller 3.2.1 (PyInstaller项目网址 www.pyinstaller.org

须要安装pywin32 和 pyinstaller模块:
安装方法:
pip install pywin32
pip install pyinstaller

使用命令:python

pyinstaller -F -w -i manage.ico app.pyapp

-F:打包为单文件
-w:Windows程序,不显示命令行窗口
-i:是程序图标,app.py是你要打包的py文件

默认的exe生成目录为dist.

工具