How to update Python from 2.7 to 3.7 in CentOs/WHM
Today will show you guys how you can easily upgrade your Python version to latest version by following this simple step you will get it done.
# install requirements
yum install gcc openssl-devel bzip2-devel libffi-devel zlib-devel xz-devel
# Download python version
cd /usr/src
wget https://www.python.org/ftp/python/3.7.13/Python-3.7.13.tgz
# extract package
tar xzf Python-3.7.13.tgz
# Install Python
cd Python-3.7.13
./configure --enable-optimizations
# Used to prevent replacing the default python binary file /usr/bin/python.
make altinstall
#remove the downloaded file after we are done.
rm /usr/src/Python-3.7.13.tgz
Continue Reading
Be first to comment