Install python 3.6 on CentOS 7

CentOS 7 come with Python 2.7. To install python 3.6, first install EPEL repo.

Install IUS repo.

https://ius.io/GettingStarted/

For CentOS 7, run

Now you can install python 3.6 with yum

Python 3.6 binary will be available as “python3.6” and “pip3.6”