Super User is a question and answer site for computer enthusiasts and power users. 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 want to uninstall Python 2.6.5 and then install Python 2.5. I also want to uninstall nosetests new version and install the old one.

OS is Ubuntu.

share|improve this question

migrated from May 20 '11 at 15:20

This question came from our site for professional and enthusiast programmers.

Uninstall with aptitude remove and install with aptitude install? – nmichaels May 20 '11 at 15:19
possible duplicate… – Blomkvist May 20 '11 at 15:42
Downgrading python can actually interfere with Ubuntu. This should really be asked on askubuntu. – Blomkvist May 20 '11 at 15:44

While this would be best asked on askubuntu I have used the answer outlined here before. The main idea is that you can use the Deadsnakes PPA in combination with virtualenv to use the specific Python version that you need. I use it all the time to build specific package versions of Mercurial to deploy to my remote Linux server and it works perfectly!

You should NOT uninstall or downgrade the default Python on an Ubuntu machine since internal programs and services do rely on it. You will get unexpected results if you do.

share|improve this answer

You must log in to answer this question.