Contents

Compile Python3 on Linux

1.Ubuntu or Debian

apt install libffi-dev libssl-dev libncurses5-dev

./configure --prefix=/usr/local/python3 --enable-optimizations

make && make install

2.RHEL or Centos

yum install libffi-devel.x86_64 openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel gcc-c++

./configure --prefix=/usr/local/python3 --enable-optimizations

make && make install