py脚本如下:
print 'hello world'
raw_input('press enter key to exit')
setup.py如下
from distutils.core import setup
import py2exe
options = {"py2exe":
{"compressed":1,
"optimize":2,
"bundle_files":1
}
}
setup(
options=options,
data_files=[],
zipfile=None,
windows = ['hello.py']
)
为什么setup里console=['hello.py']替换为windows=['hello.py']
生成的exe报错,报错如下
Traceback (most recent call last):
File "hello.py", line 3, in
EOFError: EOF when reading a line