This article will show the steps for installing Python on Ubuntu Operating System.
I have created a virtual machine with Ubuntu Operating system 8.10 and this installing process also works with upgraded version of Ubuntu OS.
For installing Python we need to download Python on our operating system and then install it.
Creating and installing Ubuntu on Oracle VirtualBox can be seen from my blog i.e. :
http://slobaexpert.wordpress.com/2012/06/10/installing-ubuntu-on-oracle-vm/
Below are the details steps for installation assuming that we have installed Ubuntu OS :
Step 1) Open Ubuntu from Oracle VirtualBox (Note: we can also use VMware instead of Oracle VirtualBox):
Step 2) Navigate to
'Application' then click on
'Accessories' and finally open a new
'Terminal':
Step 3) Type
'sudo su' and keep it aside, so in the mean while we can download Python:
Step 4) Open Mozilla Firefox and go to Python official web site i.e.
http://python.org/:
Step 5) Navigate to
Download tab and download Python :
Download the latest version:
Once clicked on the link we will be asked to either open it or save it as like below:
Click
'OK' :
Step 6) Go to your desktop and extract the file there(you can also choose your own folder or path where you want to extract but here I am extracting it on the desktop ):
Step 7) Now go to the terminal opened earlier and go to the desktop path where Python file is been extracted:
Step 8) Then type
'./configure' and hit enter:
Step 9) Type
'make' and hit enter:
Step 10) Now finally type
'sudo make altinstall' and hit enter:
Step 11) Let us verify if the installation is done successfully or not, for doing this open another
'Terminal' and type
'python' and hit enter:
Finally we can see that we have installed Python on Ubuntu operating system. Let us write a simple program to print
'Hello Sloba' :
To exit from Python we can type 'exit()' as like below:
Now starting programming in Python on Ubuntu operating system.
Comments (0)