+ -
当前位置:首页 → 问答吧 → 用python生成exe

用python生成exe

时间:2009-08-06

来源:互联网

调出windows xp的命令行,可以在“开始”->“运行”-> cmd
c....> d:
d:> cd hello
d:\hello>D:\hello>setup.py py2exe
d:\hello>D:\hello>cd dist
d:\hello>D:\hello\dist>hello.exe
hello world!

作者: houhuiyang   发布时间: 2009-08-06

生成的文件好像都挺大的

作者: ronin   发布时间: 2009-08-11

最好把setup.py的内容一起发上来

作者: appz   发布时间: 2009-08-12

setup.py

from distutils.core import setup

import py2exe

setup(console=['hello.py'])

作者: Ymir   发布时间: 2009-09-24