I suggest that you verify the RPMs are correctly installed using
rpm -V yum rpm rpm-libs rpm-python python python-sqlite python-urlgrabber python-ele... [by TrevorH]
In a Kubuntu I installed yum.
~$ sudo apt-get install yum
[sudo] password for jim:
Reading package lists... Done
Building dependency tree
Reading state information...
I want to execute python from php and I do have a script that works fine for default python interpreter. I have centos with default python 2.6.6 which is installed at /usr/bin/python and python 2.7.3 which is installed at /usr/local/bin/python2.7.