【问题标题】:Installing matplotlib on python version 2.5在 python 2.5 版上安装 matplotlib
【发布时间】:2017-11-03 11:15:04
【问题描述】:

我使用电力系统分析包pss/e,它使用python 2.5版。

我想在这个环境中使用 matplotlib(我从 PSS/e 运行 python 而不是相反,并且没有版本选择)。可能吗?将如何安装它?我认为我不能在这个旧版本中安装/使用 PIP?

我对python很陌生!使用 64 位 win7 机器。

【问题讨论】:

    标签: python matplotlib psse


    【解决方案1】:

    我不知道 pss/e,但所有 matplotlib versions prior to 1.2.0 都可以在 SourceForge 上找到。对于 Python 2.5,我相信您需要 1.1.1 版本,您可以找到 here

    matplotlib 网页上有installation instructions,但如果可能的话,推荐使用 PIP,我引用:

    对于标准 Python 安装,使用 pip 安装 matplotlib:

    python -m pip install -U pip setuptools
    python -m pip install matplotlib
    

    你应该拥有的 PIP 版本是(我认为)pip 1.3.1。如果您需要执行任何这些安装(除了 matplotlib),请检查 SO 中的其他问题。它是最好的资源,因为你几乎找不到任何人对这样一个旧版本的处理记忆犹新(我使用 Python 已经有 7 或 8 年了,我认为我从来没有使用过比它更旧的版本2.7)。例如参见:

    Pip installing into an older Python version

    How to setup setuptools for python 2.6 on Windows?

    【讨论】:

      猜你喜欢
      • 2012-03-17
      • 2023-03-05
      • 1970-01-01
      • 1970-01-01
      • 2019-04-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-22
      相关资源
      最近更新 更多