How To Install Python3 On CentOS 7

Bit Ninja


In this video, we demonstrate to you how to do install the latest version of Python3 via source and using Yum.

Commands used:
Yum
[root@centos7 ~]# yum update -y
[root@centos7 ~]# yum install -y python3
[root@centos7 ~]# python3
[root@centos7 ~]# (Ctrl+D to exit python shell)

Source
[root@centos7 ~]# yum install gcc openssl-devel bzip2-devel libffi-devel -y
[root@centos7 ~]# curl -O https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
[root@centos7 ~]# tar -xzf Python-3.8.1.tgz
[root@centos7 ~]# cd Python-3.8.1/
[root@centos7 Python-3.8.1]# ./configure –enable-optimizations
[root@centos7 Python-3.8.1]# make altinstall
[root@centos7 Python-3.8.1]# python3.8

The related article for this article can be found here:

How to Install Python 3 on CentOS 7

For more information about this and other topics, visit us at https://www.liquidweb.com/kb/

For more information on our other awesome products, visit: https://www.liquidweb.com/products/

To learn more about our current specials visit https://go.liquidweb.com/managed-hosting/new-year/

Video by: Justin Palmer


Duration: 00:03:16
Publisher: Liquid Web
You can watch this video also at the source.