This is just a short post to document the required commands to build Python 3 on a CentOS 7. First we need to install the Development tools and some required sources: e.g. bzip, to support compression in python
yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
Next we are downloading and compiling Python 3 as shared library. […]