On my CentOS 5.8 system (el5 , 64bit), I had python2.4 after OS install and I installed python2.6 now. Now I want to install python modules using yum. But whenever I install a new python module it goes to the python2.4 and is not installed for python2.6. I tried to replace the python2.4 binary with python2.6 binary. But this broke yum and I had to restore python2.4. So I concluded that it is not a good idea to uninstall python2.4 (that came with base OS) as it might break other system dependencies.My question is how do I safely install python modules targeting python2.6 without breaking python2.4?
Installing python modules for python2.6
centos;python