目前有三种方法
[TOC]
最近更新时间2013-09-28 官网:http://www.pyinstaller.org/ github: https://github.com/pyinstaller/pyinstaller
2.4 - 2.7
python pyinstaller.py [opts] yourprogram.py
主要选项包括:
-F, –onefile 打包成一个exe文件。 -D, –onedir 创建一个目录,包含exe文件,但会依赖很多文件(默认选项)。 -c, –console, –nowindowed 使用控制台,无界面(默认) -w, –windowed, –noconsole 使用窗口,无控制台
最近更新时间2008-11-16 官网:http://www.py2exe.org/
帮助命令 python setup.py py2exe --help
最近更新时间2014-05-04 官网:http://sourceforge.net/projects/cx-freeze/
2.4-2.7
查看帮助:cxfreeze -h
打包命令 cxfreeze target.py --target-dir dist