Install Python 3.8 on CentOS 7 or 8

Here is a one block automated install for Python3.8 on CentOS:

1
2
3
4
5
6
7
8
9
10
yum install make gcc openssl-devel bzip2-devel libffi-devel -y
cd /opt
wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz
tar xzf Python-3.8.0.tgz
cd Python-3.8.0
./configure --enable-optimizations
make altinstall
rm Python-3.8.0.tgz
python3.8 --version
cd /root

Leave a Reply

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