摘要: python程序可以通过python hello.py执行,但是需要安装python的解释器,并配置环境变量,打包成exe程序之后可以直接执行。使用setup工具和py2exe可以做到这一点。最简单的hello.pyprint 'Hello ,world!'raw_input('Press ')同级目录下创建setup.pyfrom distutils.core import setupimport py2exesetup(console=['hello.py'])运行python setup.py py2exe进行打包报错:no module 阅读全文
posted @ 2013-07-24 00:19 看天空变黑 阅读(461) 评论(0) 推荐(0) 编辑