Carlos Aguni

Highly motivated self-taught IT analyst. Always learning and ready to explore new skills. An eternal apprentice.


Python 3 compile install

14 Jan 2021 »

Python3.9 Centos Amazonlinux

ver=3.9.0
yum -y install openssl-devel bzip2-devel libffi-devel make gcc
wget https://www.python.org/ftp/python/${ver}/Python-${ver}.tgz
tar xzvf Python-${ver}.tgz
cd Python-${ver}
./configure --enable-optimizations
make altinstall
ln -sf /usr/local/bin/python3.9 /usr/bin/python3
ln -sf /usr/local/bin/pip3.9 /usr/bin/pip3

centos

ln -sf /usr/local/bin/python3.9 /usr/local/bin/python3
ln -sf /usr/local/bin/pip3.9 /usr/local/bin/pip3

Python3.6 CentOS

ver=3.6.12
yum -y install openssl-devel bzip2-devel libffi-devel make gcc
wget https://www.python.org/ftp/python/${ver}/Python-${ver}.tgz
tar xzvf Python-${ver}.tgz
cd Python-${ver}
./configure --enable-optimizations
make altinstall