小编Ora*_*861的帖子

KeyError:当我使用cx_Freeze时'TCL_Library'

当我使用时,cx_FreezeKeyError: 'TCL_Library'在构建我的pygame程序时得到了一个keyerror .为什么我会得到这个,我该如何解决?

我的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")],
    )
Run Code Online (Sandbox Code Playgroud)

python cx-freeze python-3.x

47
推荐指数
4
解决办法
4万
查看次数

标签 统计

cx-freeze ×1

python ×1

python-3.x ×1