所以,基本上,我正在尝试将我的Python 2.7脚本变成EXE。这是我的setup.py:
from distutils.core import setup
import py2exe
import os
setup(
options = {
"py2exe":{
"includes": ["os"]
}
},
name = "Anansi CalcPad",
version = "0.35",
description = "Anansi CalcPad is a three-tiered application that provides a journal, calculator, and news aggregator in one.",
author = "Cody Dostal",
author_email = "cody@seafiresoftware.org",
url = "http://seafiresoftware.org/wordpress/anansi-calcpad/",
windows = ["AnansiCalc.py"],
)
如果存在缩进问题,则是由StackOverflow上的错误副本引起的,而不是代码中的。
这是错误:
Traceback (most recent call last):
File "AnansiCalc.py", line 3, in <module>
ImportError: No module named os
有什么问题?