我正试图利用这一法典将我的手稿编成一个精彩的字体:
from distutils.core import setup
import py2exe, sys, os
sys.argv.append( py2exe )
setup(
options = { py2exe : { optimize : 2}},
windows = [{ script : "get.py"}],
zipfile = "shared.lib",
)
我在座右铭看到这一点:
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
running py2exe
*** searching for required modules ***
*** parsing results ***
creating python loader for extension unicodedata (C:Python27DLLsunicodedata.pyd -> unicodedata.pyd)
creating python loader for extension select (C:Python27DLLsselect.pyd -> select.pyd)
creating python loader for extension _hashlib (C:Python27DLLs\_hashlib.pyd -> _hashlib.pyd)
creating python loader for extension bz2 (C:Python27DLLsz2.pyd -> bz2.pyd)
*** finding dlls needed ***
*** create binaries ***
*** byte compile python files ***
writing byte-compilation script c:docume~1userlocals~1 emp mpduooti.py
C:Python27pythonw.exe -OO c:docume~1userlocals~1 emp mpduooti.py
Traceback (most recent call last):
File "C:Documents and SettingsUserApplication Data.minecraftsavesHuFAdventuresetup.py", line 7, in <module>
zipfile = "shared.lib",
File "C:Python27libdistutilscore.py", line 169, in setup
raise SystemExit, "error: " + str(msg)
SystemExit: error: command C:Python27pythonw.exe failed with exit status 1
>>>
请帮助。