ImportError: cannot import name 'tksupport'

ImportError: cannot import name 'tksupport'

我想这是一个愚蠢的问题,但我不知道如何解决我的问题。我用谷歌搜索了它,也搜索了 SO 没有结果。

我正在学习 tkinter 和 twisted,正在学习一个基本示例,但无法导入 tksupport。

我是 运行 ubuntu mate 16.04(32 位),python3.5.

我使用 apt-get install python3-twisted 安装了 twisted,然后当它不起作用时我使用 pip3 install twisted 再次安装。

这两个命令似乎都运行良好,而且我的一个导入(反应器)正在运行。这是我的导入

from twisted.internet import tksupport, reactor

谁能告诉我我做错了什么?

谢谢

twisted 中并非所有模块都已移植到Python 3. tksupport 尚未移植。

Only some parts of Twisted have been ported, and therefore only a subset of modules are installed under Python 3. You can see the full list of ported modules in twisted.python.dist3.

Twisted Python3 documentation

List of twisted modules currently in Python3