Install Python 3 on CentOS 6

The latest release of Python 3 is 3.3.2, and there’s no package available on CentOS repo via yum. The following steps explains how to manually get Python 3 onto a CentOS system:

Install development tools

# yum groupinstall "Development Tools"
# yum install zlib-devel bzip2-devel openssl-devel \
ncurses-devel sqlite-devel readline-devel \

Download and install Python

$ wget
$ tar xjf Python-3.3.2.tar.bz2
$ cd Python-3.3.2
$ ./configure --prefix=/opt/python3
$ make
$ make install


/opt/python3/bin/python3 -V
Python 3.3.2


Leave a Reply

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