Topics

Step By Step Guide to Install Python in Linux


  Step By Step Guide to Install Python in Linux             


In this blog will explain How to download and install Python latest version on Linux Operating Systems.

Installing python3 in Linux is very easy and it can be install in very few steps. 

Step 1: First you need to update the repository perquisites package list and install dependencies to build python Linux red hat. Using following command it can be done.

            $sudo yum update
            $ sudo yum install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev               libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev

Step 2: Download python3.8 installer from the below given link .
           you can download directly from Linux environment using wget command as below. 
        $wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz
Step 3: After downloading the source packages in directory untar the tar file using below Linux                            command.
            $tar -xvf Python-3.8.0.tgz
Step 4:Now goto extracted python source directory and run the configure script to check the system                   dependencies and compatibilities to build python on Linux system. 
           $./configure --enable-optimizations.
           This step will take some time , so wait until this step will be completed successfully. 
Step 5: Now run `make` command to build the python 3.8 processes.
            $make
Step 6: Once build process will complete, you can install python binaries by using following                                commands.
            $sudo make altinstall
Step 7: Python3.8 is successfully installed in your system now you need to verify it. Verify it with the                 help of python version command. 
             $python3 --version
             $Python 3.8.0 //Output on your terminal.

In This article you have learnt how to install python on Linux operating system. Now you can use this terminal to explore different python concepts.