0
我目前正試圖編譯我工作 .py文件使用py2exe v.0.9.2.0
py2exe表示:「OOPS:Tkinter的2」編譯
這樣做雖然我得到這個輸出.EXE時(見下文)在控制檯中,遺憾的是py2exe退出OOPS: tkinter 2
聲明後沒有任何錯誤。
任何人都知道爲什麼會發生這種情況? 這個OOPS聲明是什麼意思?
我找不到什麼關於一個OOPS:
語句與py2exe在所有,所以這很奇怪。
C:\Users\X\Desktop\>python setup.py py2exe
running py2exe
20 missing Modules
------------------
? Image imported from openpyxl.drawing.image
? PIL._imagingagg imported from PIL.ImageDraw
? PyQt5 imported from PIL.ImageQt
? PySide imported from PIL.ImageQt
? _abcoll imported from openpyxl.compat.odict
? _util imported from PIL.ImageCms
? backports imported from setuptools.ssl_support
? cffi._pycparser imported from cffi.cparser
? dummy_thread imported from cffi.lock, openpyxl.compat.odict
? numpy imported from openpyxl.compat.numbers
? openpyxl.tests imported from openpyxl.reader.excel
? pandas imported from openpyxl.compat.numbers
? readline imported from cmd, code, pdb
? setuptools_svn imported from setuptools.command.egg_info
? testing imported from cffi.recompiler
? thread imported from cffi.cparser, cffi.lock, openpyxl.compat.odict
? urllib.pathname2url imported from setuptools.compat
? urllib.splittag imported from setuptools.compat
? urllib.url2pathname imported from setuptools.compat
? wincertstore imported from setuptools.ssl_support
OOPS: tkinter 2
這是我的setup.py:
from distutils.core import setup
import py2exe
console = [{
'script': "_Core.py",
'icon_resources': [(1, "rsc/Checklist.ico")]
},]
setup(
options = {'py2exe': {'bundle_files': 1}},
zipfile = None,
version = "1.0",
name = "MAC",
console = console,
)
又一個跟進的問題,什麼是試圖編譯大 Python項目,我用效果更佳哪些程序時,最好的做法?
在此先感謝!