Install Python from Source

Python is a very powerful programming language.Its very fast.Its plays well with others and it runs everywhere.It is friendly & easy to learn and Open.

 

To play with python, its needs to be installed on your system.. Python can be installed using the respective package manager such as apt and yum.However, if you want the most recent version, then we need to install from source.

 

The following steps guides you on how to install from source on a Centos 7 linux Box.

a) Prepare Your System

# yum -y groupinstall "Development Tools"# yum -y install zlib-devel libffi-devel

 

b) Download python Source Code

# cd /usr/local/src# wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz

 

 

Note: As of writing this article, the current version is 3.8.1

 

c) Build Python

# cd /usr/local/src
# tar xvf Python-3.8.1.tgz
# cd Python-3.8.1
# ./configure --with-ensurepip=install --enable-shared
# make
# make install

 

 

After installation please create a symlink for the shared object library by using the following command:

ln -s /usr/local/lib/libpython3.8m.so.1.0 /usr/lib64/libpython3.8m.so.1.0

 

Upgrade pip

pip3.8 install --upgrade pip

Note: Please note that after installation, the new version’s binary path will be located at /usr/local/bin/python3.8

 

About KONE MIKANDO

An IT professional with more than 4 years of experience as an Oracle database administrator. Extensive installation experience (RAC and stand-alone), administration, implementation, troubleshooting, Oracle 12c / 11g tuning, export / import, OEM grid control, Data Guard on Unix, Rman backup / restore, upgrade, migration , correction (RDBMS, GRID) PSU & CPU, Database migration. I like everything about the Oracle & DB2 database. For me, sharing is the best thing we can offer in this job. And learning is not an option but a duty for database administrators.

Leave a Reply

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