how to install python-devel for 2.6 version?

maolingzhi picture maolingzhi · Feb 23, 2012 · Viewed 34.3k times · Source

i use centos 5.4 ,the default python version is python2.4,so i use the python2.6.2.tar.gz compile a python 2.6 version

and now i want to intstall board review project it need install python-devel package,if i use yum install python-devel,it will install the python2.4 relevent version python-devel,

how could i get a python2.6 version devel package install?

Answer

wrgrs picture wrgrs · Jul 27, 2012

If you enable the EPEL repo, you can install python 2.6 and the devel headers using yum:

# yum install python26
# yum install python26-devel

These packages won't then conflict with the python 2.4 ones.