Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two different versions of python running on the server, 2.4 (default) and 2.5. Python-matplotlib is install via apt-get for 2.4. I want to install it also for 2.5, but apt-get install says that it is already installed. How do I specify that the install target should be the non-default python version.

share|improve this question
which distribution and which version? – rkthkr Jun 25 '09 at 13:17
Just curious, why not stick with 2.5 instead of 2.4? Is there a specific feature that will break in 2.5? – Avery Payne Jul 29 '09 at 4:51

I would recommend EasyInstall, to install packages native to each Python installation.

share|improve this answer

This worked for me: Link python command so that "python --version" shows the version you want matplotlib to be installed for. Manually compile and install matplotlib. Relink python command back to previous version.

share|improve this answer

Python modules need to be installed for each python version separately. Debian has support for multiple-python modules in one package (via python-support and python-central), but supported python version must be declared at build time. python-matplotlib package in squeeze has Python-Version: 2.4, 2.5, so it contains support for python2.5. Either you are using older distribution or you are doing something wrong.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.