setup.py:
import sys
from cx_Freeze import setup, Executable
build_exe_options = {"packages": ["lxml","tkinter","win32timezone","docx"] }
setup( name = "ProgramGUI",
version = "0.1",
description = "Telephone History Tracer",
options = {"build_exe": build_exe_options},
executables = [Executable("Telephone History Tracer.py")],
)
这构建良好。
运行程序时出现错误:
docx.opc.exceptions.PackageNotFoundError: Package not found at'C:\Python33\build\exe.win32-3.3\library.zip\docx\templates\default.docx'
我已将templates
文件夹手动粘贴到...library.zip\docx\
(其中包含default.docx文件),但我仍然遇到同样的错误。
我非常感谢你对此提出一些建议。