Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 need python 3.2 for development purposes, but new ubuntu 13.04 comes with python 3.3.

is there any best practice for installing older python version into ubuntu?


share|improve this question
Any specific reason you'd need 3.2? Is there a feature in it which is not in 3.3? – dobey May 15 '13 at 21:40
No, but there is 3.2 on the production server and I would like to work on the same version. – JoshuaBoshi May 16 '13 at 10:37
up vote 10 down vote accepted

Use the Deadsnakes PPA, which includes a range of Python versions packaged for a range of Ubuntu versions, including 3.2 for raring.

sudo apt-add-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.2
share|improve this answer
This is exactly the answer I was waiting for.. thank you very much! – JoshuaBoshi May 16 '13 at 21:34

Download and compile Python (with the terminal):

tar jxf ./Python-3.3.0.tar.bz2
cd ./Python-3.3.0
./configure --prefix=/opt/python3.3
make && sudo make install

Source: AskUbuntu

share|improve this answer
If I overlook that I want to install 3.2 (not 3.3), I guess this answer should be "compile it". I am ok, with this answer, but I would like to know if there is any better option - prepared packages maybe. – JoshuaBoshi May 16 '13 at 10:40

Other options I've come across are pyenv and pythonz - they both will build custom versions of python (including PyPy and Jython) for you and allow you to change the python you use in the terminal.

I haven't tried either myself so can't recommend one.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.