【发布时间】:2016-06-02 17:00:03
【问题描述】:
当我使用 cx_Freeze 时,我在构建我的 pygame 程序时收到一个 keyerror KeyError: 'TCL_Library'。为什么会出现这种情况以及如何解决?
我的 setup.py 如下:
from cx_Freeze import setup, Executable
setup(
name = "Snakes and Ladders",
version = "0.9",
author = "Adam",
author_email = "Omitted",
options = {"build_exe": {"packages":["pygame"],
"include_files": ["main.py", "squares.py",
"pictures/Base Dice.png", "pictures/Dice 1.png",
"pictures/Dice 2.png", "pictures/Dice 3.png",
"pictures/Dice 4.png", "pictures/Dice 5.png",
"pictures/Dice 6.png"]}},
executables = [Executable("run.py")],
)
【问题讨论】:
标签: python python-3.x cx-freeze