How to install python 2.7.2 on Ubuntu?
Saturday, April 12, 2014
I want to install
python 2.7.2.tgz
on Ubuntu, (You may downloaded from http://python.org/download/). In this post I want to say how to install python 2.7.2 on ubuntu by terminal.Steps:
First open terminal install some dependencies:
A) sudo apt-get install build-essential
B) sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev
libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
Then download using the following command:
C)
cd ~/Downloads/ D) wget http://python.org/ftp/python/2.7.5/Python-2.7.5.tgz
Extract and go to the dirctory:
E) tar -xvf Python-2.7.5.tgz
F) cd Python-2.7.5
Now, install using the command you just tried:
G)
./configure H) make I) sudo make altinstall
Now you can run python code by terminal by the command:
J) Press CRT+ALT+t to open terminal
K)
python <filename>.py
Labels: Python
Post a Comment