【问题标题】:When installing through pip, how do I tell matplotlib how to find tkinter?通过 pip 安装时,我如何告诉 matplotlib 如何找到 tkinter?
【发布时间】:2014-01-30 13:06:58
【问题描述】:

我在 Red Hat Enterprise Linux 6.5 上安装了全新的 Python 3.3,包括 Tkinter — python3.3 -m tkinter 工作并显示对话。但是,当我在 Optional Backend Dependencies 处运行 pip3.3 install matplotlib 时,它会显示:

Tkinter:没有 * TKAgg 需要 Tkinter

matplotlib 如何确定Tkinter 的可用性,我该如何提示?

【问题讨论】:

    标签: python matplotlib tkinter python-3.3


    【解决方案1】:

    我建议您从发行版的存储库中获取 matplotlib。 Pip 适合安装简单的纯 Python 包,但对于 matplotlib 或 numpy 等包来说不是很方便,因为这些包需要解决很多非 Python 依赖项。你的包管理器应该很好地为你处理所有这些事情。

    【讨论】:

    • 我在这台机器上没有 root 访问权限,所以除非我安装在 virtualenv 中,否则我只能使用 python2.6。我想使用更新的 python 版本。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-05
    • 2018-10-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多