Skip to content

Instantly share code, notes, and snippets.

@johnsage25
Last active March 15, 2020 20:42
Show Gist options
  • Save johnsage25/2de3c7f291f3ba05fd9fe6afd5a32a67 to your computer and use it in GitHub Desktop.
Save johnsage25/2de3c7f291f3ba05fd9fe6afd5a32a67 to your computer and use it in GitHub Desktop.
How to Install Python 3.6.4 on CentOS 7
How to Install Python 3.6.4 on CentOS 7
========================
We’ll show you how to install Python 3.6.4 on CentOS 7. Python is at the core of many popular websites and programs – YouTube,
Instagram, and even Yum on CentOS, to name a few. They all rely on Python’s reliability and performance to complete many tasks at a time.
Python is a general-purpose object-oriented
programming language designed to be used as a software solution for almost all kinds of problems.
However, the pre-installed version of Python found on CentOS 7 is a much older version.
In order to have the latest version of Python, the user will have to install it manually.
Type on terminal:
```bash
sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm
sudo yum update
sudo yum install -y python36u python36u-libs python36u-devel python36u-pip
python3.6 -V
```
First, we will need the tools in order to be able to compile and install programs from their source code. To do this, we will install the group “Development Tools” through Yum itself:
```bash
sudo yum groupinstall -y "Development Tools"
```
now we can:
```bash
wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz
tar -xJf Python-3.6.4.tar.xz
cd Python-3.6.4
./configure
make
make install
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment