我在 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 依赖项。您的包管理器应该很好地为您处理所有这些事情。
关于python - 通过pip安装时,如何告诉matplotlib如何找到tkinter?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21457402/