Friday, July 29, 2016

Install Python in Ubuntu

"Python is a programming language that lets you work more quickly and integrate your systems more effectively. And it is powerful...fast...plays well with others and runs everywhere..Most of all python is open and easy to learn..... So give it a try with your back-end developments...." 

Here I'm going to discuss how to install python on Ubuntu. So here we go.......

First you have to install some dependencies before installing python..execute following commands in shell...
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

Then download python latest version from Python Site  and extract it..
tar -xvf Python-3.5.2.tar.xz
cd Python-3.5.2

Execute following commands to configure and install python...
./configure
make
sudo make install
Execute command "python" to go to python console
To exit from python console use "exit()"
use CXX=g++ ./configure if ./configure issues a warning saying g++ was not found