【问题标题】:Tktable module installation problem. _tkinter.TclError: invalid command name "table"tktable模块安装问题。 _tkinter.TclError:无效的命令名称“表”
【发布时间】:2020-05-19 03:24:37
【问题描述】:

这个问题之前已经报告过了,但我找不到确切的解决方案。我安装了 ActiveTCL 并通过“Guilherme Polo <ggpolo@gmail.com>”将 tktable.py 下载到我的 site-packages,还从 ActiveTCL\lib\Tktable2.11 添加了 Tktable.dllpkgindex.tcltktable.tcl 到我的 python38-32\tcl 和 dlls 。我还尝试将 TCL_LIBRARY 和 TK_LIBRARY 的 env 变量分别设置为 tcl8.6 和 tk8.6。但我仍然收到invalid command name "table"

我错过了什么?那些让 tktable 在 windows 10 和 python 3 上工作的人,你是怎么做到的?我没有想法,如果能提供一些建议,我将不胜感激。

【问题讨论】:

  • 看起来package require Tktable 在 Tkinter 的 Tcl 端没有做任何事情(或者在这样做时失败并吞下了错误,这会更令人沮丧)。所有这些都不能真正帮助您,但可能指向正确的方向,可以找到解决方案?

标签: python-3.x tkinter tcl python-module tktable


【解决方案1】:

似乎在 python38-32 位版本中运行 Tktable dll 时出现问题。它在 64 位版本中工作。 感谢@Donal Fellows 的意见。

【讨论】:

    猜你喜欢
    • 2011-05-14
    • 2020-01-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多