我在 Red Hat Enterprise Linux 6.5 上安装了全新的 Python 3.3,包括 Tkinter — python3.3 -m tkinter 可以运行并显示对话。但是,当我运行 pip3.3 install matplotlib 时,在 Optional Backend Dependencies 中,它说:
Tkinter: no
* TKAgg requires Tkinter
matplotlib 如何确定 Tkinter 的可用性,我该如何给它提示?
请您参考如下方法:
我建议您从发行版的存储库中获取 matplotlib。 Pip 适合安装简单的纯 Python 包,但对于 matplotlib 或 numpy 等包来说不是很方便,因为它们需要解决很多非 Python 依赖项。您的包管理器应该很好地为您处理所有这些事情。
