$ yum-config-manager --enable rhel-server-rhscl-6-rpms
$ yum-config-manager --enable rhel-server-rhscl-beta-7-rpms
$ yum install rh-python36 # Or rh-python37
@TODO
$ yum groupinstall -y "development tools"
wget/Download tgz package of Python which you need from https://www.python.org/downloads/release
For example:
$ cd /usr/src
$ wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz
$ tar xzf Python-3.6.3
$ cd Python-3.6.3
$ ./configure
$ make altinstall
$ rm Python-3.6.3.tgz
Now you can test it:
python36 -V