python - 通过pip安装时,如何告诉matplotlib如何找到tkinter?

标签 python matplotlib tkinter python-3.3

我在 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/

相关文章:

python - 使用 Numba 进行 Numpy 优化

python - 使用 matplotlib 绘制空间时间

python - 防止未网格 pcolor(mesh) 数据出现虚假水平线

Python 康威生命游戏实现

python - 使用 dill 库时出现 TypeError : can't pickle _tkinter. tkapp 对象

python - Tkinter/Python - 调整窗口大小时禁用按钮大小调整

Python,无法从递归函数附加到列表

python - Pandas MemoryError while pd.concat

python - 在 Pandas 中跨多个数据帧进行操作时保留行顺序

python - 如何用新的绘图或绘图网格替换 matplotlib 图中以前的绘图?