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.
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
Download the latest Python
sudo tar xzf Python-3.7.0.tgz
Extract the files.
After extracting the source code, now its time to compile the source code. For compiling run these commands.
sudo ./configure --enable-optimizations
sudo make altinstall
is used because we don’t want the new install overwrites all binaries inside our
Now check the version of python installed.