sudo yum install -y python38 python38-devel python38-libs python38-pip
yum install gcc openssl-devel bzip2-devel libffi-devel zlib-devel zlib glibc.i686 MariaDB-shared.x86_64 perl-Crypt-MySQL.x86_64 mariadb-devel.x86_64 -y
cd /opt
curl -O https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz
tar -zxvf Python-3.8.12.tgz
rm -rf Python-3.8.12.tgz
cd Python-3.8.12
cd /opt/Python-3.8.12
# ./configure --enable-shared --prefix=[PYTHON_BINARY가_위치할_디렉토리]
./configure --enable-shared --prefix=/usr/
make
make install
ln -s -f /usr/bin/python3.8 /usr/bin/python3
cp -rf /usr/bin/pip3 /usr/bin/pip3.6
ln -s -f /usr/bin/pip3.8 /usr/bin/pip3
cp --no-clobber ./libpython3.8.so* /lib64/
chmod 755 /lib64/libpython3.8.so*
echo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/:/lib/python3.8/ >> /etc/profile
chmod -R 755 /lib/python3.8
echo export PATH=$PATH:/usr/bin