How To Install Python 3.7 using Source Code On Ubuntu 18.04

0
138

Install Python 3.7 using source code on Ubuntu machine 18.04 is pretty easy to do that. Python is most widely used in Data Science to analyze the data and it also has huge demand as a programmer. We can install and update python 3.7 using source code in ubuntu Linux. so

Check Out: Install Python IDE And Code Editor

Python 3.7 interpreted high level, general-purpose programming language. Installing Python 3.7 also depends on your Linux distribution. So python for other distribution you can find here.

Python 3.7 most widely used open-source language. This is very easy to learn among all other programming languages. so

How To Install Python 3.7 using Source Code On Ubuntu 18.04:

Step 1: First of all, update the packages list and installed them.

sudo apt-get install update
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget

Step 2: Now download the python package from the official site.

wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tar.xz

Check Out: How To Configure Simple Notification Service(SNS) On AWS Cloud

Step 3: Extract the package using below command

tar -zxf Python-3.7.3.tar.xz
cd Python-3.7.3/
update python ubuntu
python

Step 4: This command will check all the dependencies required for python.

./configure --enable-optimization

Check Out: How To Install Pycharm IDE For Python On Ubuntu

Step 5: Now install the package so

make

Note: Don’t run the make install command, as it will overwrite the default system python binaries.

make altinstall

Step 6: Check python version

python --version

You’re done update python ubuntu

LEAVE A REPLY

Please enter your comment!
Please enter your name here