Python 3.8 on Fedora/Centos/RHEL

Published by

Posted on October 17, 2019

Python 3.8 is currently not supported within the RedHat family. If you want to install 3.8 you will need to follow one of the below steps.

Official Install Doc

Fedora notice 

1. Install from source

# cd /usr/src
# wget
Now extract the downloaded package.

# tar xzf Python-3.8.0.tgz
Compile Python Source

Use below set of commands to compile python source code on your system using altinstall.

# cd Python-3.8.0
# ./configure
# make altinstall
make altinstall is used to prevent replacing the default python binary file /usr/bin/python.

Now remove downloaded source archive file from your system



[root@airtime1663c Python-3.8.0]# python3.8
Python 3.8.0 (default, Oct 19 2019, 00:41:37) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.