in

How to install Python 3.7.x on Linux?

So after very long time I am writing something on my blog. Hell yeah! So this article is all about how to install latest python on Ubuntu, Debian, Linux Mint.
Why to install 3.7.x? Upgrading is always good but sometimes it isn’t. All of you developers know why? For more about the latest version 3.7.0. Read HERE I know reading docs are way too boring but some of you noobs loves that, so here you go.
STEP 1: First we need to install some dependency packages which are required by python.
sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
STEP 2: Download the latest Python archived file.
sudo tar xzf Python-3.7.0.tgz
Extract the files. STEP 3: After extracting the source code, now its time to compile the source code. For compiling run these commands.
cd Python-3.7.0
sudo ./configure --enable-optimizations
sudo make altinstall
altinstall is used because we don’t want the new install overwrites all binaries inside our /usr/bin. STEP 4: Now check the version of python installed.
python3.7 --version

Python 3.7.0

 

Written by Anandesh

I am a #Linux lover and very much excited about technology and new thing. Love to #read_books. Curiosity is my best teacher. I am still☺️ understanding myself.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

How to get Pluralsight 3 month subscription for free – 2018