How to install a different version of python-dev?

Solution 1:

Try installing python2.6 and python2.6-dev.

Solution 2:

You can use python virtualenv in order to separate the different versions and packages of python you need to run.

This question also deals with a similar problem.

There is also a bash script for installing and switching versions of python on the fly. If I remember the name of it I will edit this post. You can use that as well as Virtualenv to completely change python environments