简体   繁体   English

在python 2.5版上安装matplotlib

[英]Installing matplotlib on python version 2.5

I use the power system analysis package pss/e which uses python version 2.5. 我使用的电源系统分析软件包pss / e使用python 2.5版。

I would like to use matplotlib in this environment (I run python from PSS/e not the other way around and have no choice of version). 我想在这种环境下使用matplotlib(我从PSS / e运行python,但没有其他选择,没有版本选择)。 Is it possible? 可能吗? How would install it? 如何安装? I don't think I can install/use PIP in this old version? 我认为我不能在此旧版本中安装/使用PIP吗?

I am very new to python! 我是python的新手! using a 64 bit win7 machine. 使用64位win7机器。

I do not know pss/e but all matplotlib versions prior to 1.2.0 are available on SourceForge . 我不知道pss / e,但是SourceForge上提供了1.2.0之前的所有matplotlib版本 For Python 2.5 I believe you'll need the 1.1.1 version which you'll be able to find here . 对于Python 2.5,我相信您需要1.1.1版本,可以在这里找到。

There are installation instructions on matplotlib wepage, but if possible the recommended is using PIP, and I quote: 在matplotlib网页上有安装说明 ,但如果可能,建议使用PIP,我引用:

For standard Python installations, install matplotlib using pip: 对于标准的Python安装,请使用pip安装matplotlib:

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

The PIP version you should have is (I think) pip 1.3.1 . 您应该拥有的PIP版本是(我认为) pip 1.3.1 If you need to perform any of these installations (besides matplotlib) check other questions in SO. 如果您需要执行任何这些安装(除了matplotlib之外),请检查SO中的其他问题。 It's the best resource since you'll hardly find anyone whose dealings with such an older version are fresh in their mind (I've been using Python for some 7 or 8 years and I don't think I have ever used an older version than 2.7). 这是最好的资源,因为您几乎找不到与这种较旧版本打交道的任何人(我使用Python已有7或8年了,我认为我从未使用过比该版本更旧的版本) 2.7)。 For example see: 例如,请参见:

Pip installing into an older Python version 将Pip安装到较旧的Python版本中

How to setup setuptools for python 2.6 on Windows? 如何在Windows上为python 2.6设置setuptools?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM