Install Python 2.7 on CentOS 6

CentOS 6 comes with python 2.6, to install python 2.7, first install gcc and dependencies yum

Download latest Python 2.7 from

For Python 2.7.2 (latest at the time of writing this post).

We use “make altinstall” so python will be installed as python2.7. If you do “make install”, it replace system python binary and break CentOS.

Install pip

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *