带有docx包的cx_freeze

时间:2014-06-12 14:09:47

标签: python python-3.x package cx-freeze

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文件),但我仍然遇到同样的错误。

我非常感谢你对此提出一些建议。

0 个答案:

没有答案