Connect with us

How to update Python from 2.7 to 3.7 in CentOs/WHM

kizinho

Published

on

Follow
DEVELOPER PROGRAMMING: How to update Python from 2.7 to 3.7 in CentOs/WHM [New  Developer Programming] » Naijacrawl
Photo: Naijacrawl
site

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 

Click Here To Comment


site


kizinho

Adike Kizito is a top-rated software developer, blogger, sports, and entertainment lover. He is the CEO of these popular websites Naijacrawl.com and Mp3ager.com. He operates his software developing task through Kizzsoft.com,... Read More

Continue Reading
Click to comment

Be first to comment


    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Latest


    Download Naijacrawl App today

    Fastest way to read on the go

    Download the Naijacrawl App.