Getting Yum To Install To Python 2.7 Dir

Home » CentOS » Getting Yum To Install To Python 2.7 Dir
CentOS 11 Comments

I am running CentOS 6.5, which has python 2.6. I need python 2.7 so I
installed that and it works and is my default python. But yum does not work with that, so I changed the shebang line for yum to
/usr/bin/python2.6 and then yum works again. But when I install a python package with yum it get installed to
/usr/lib64/python2.6/site-packages/. How can I get yum to install to
/usr/lib64/python2.7/site-packages?

Thanks!

11 thoughts on - Getting Yum To Install To Python 2.7 Dir