Hello,
I will recommend building from source by following the steps below:
a) Prepare Your System
# yum -y groupinstall development
# yum -y install zlib-devel
b) Download python Source Code
# cd /usr/local/src
# wget
https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgzc) Build Python
# cd /usr/local/src
# tar xvf Python-3.6.0.tgz
# cd Python-3.6.0
# ./configure --enable-optimizations --with-ensurepip=install
# make -j 8
d)The default path of python3 will be /usr/local/bin/python3
e)After the above steps are done, upgrade pip3 by running the following comman
pip3 install --upgrade pip