【发布时间】:2020-11-17 16:56:28
【问题描述】:
在尝试使用 comm 包时遇到这个问题:
>>> interp = tkinter.Tcl()
>>> interp.eval('package require comm')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
_tkinter.TclError: can't find package comm
我在 Windows 10 上使用 python 3.6.8
【问题讨论】:
-
欢迎来到 SO Sblu,你能分享产生这个错误的代码吗?
-
假设是this comm package,你安装tcllib了吗?
-
@shawn,是的,就是那个通讯包。一般来说,我是 tcl 的新手。你如何检查它是否已经安装?
-
@cbo,代码贴出来了
-
我的错误@Sblu,将在时间限制过后相应地纠正我的反对意见。