I am currently stuck using both Python2.6 and Python2.7 on Lubuntu 12.10. 2.6 is required for a piece of software.
In attempting to write a plug-in for this software (Opticks), I need to be able to access PyQt4. Using apt-get install python-qt4 I get a perfectly working installation for 2.7...
I have tried altering the default python version and changing the soft link in /usr/bin to 2.6. No joy. Pip-2.6 and easy_install-2.6 are also unable to install PyQt4 due to the lack of a setup.py file.
I was able to get this functioning using the suggestion from @dobey and a link on compiling pyQT for python2.7. In the link, simply change ally python2.7 calls to python2.6.