Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to ubuntu and will be focusing on machine learning. Can anyone please provide a step by step guidance for python installation on my system?

share|improve this question

Python is installed by default in Ubuntu. Open a terminal by pressing Ctrl-Alt-T shortcut and type python to enter it's interactive shell. You don't need to install anything.

The python shell will look something like this: (the version number won't match since I'm on 12.04)

Python 2.7.3 (default, Aug  1 2012, 05:16:07) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
share|improve this answer
I suggest using ipython instead of python as an interactive shell. – bbaja42 Oct 23 '12 at 19:32
ipython is not installed by default I have found a package for machine learning. It might be useful for you. python-scikits-learn - Python modules for machine learning and data mining – Arpad Horvath Oct 25 '12 at 16:13

Answers above are complete for your question. But for machine learning you probably can provide us with more information what exactly you want to do. Probably you will need some additional libraries, for sure numpy, matplotlib, scipy which are the base on this type of problems, but also you need to decide what data format you have. For example I use pandas to have R-like dataFrame where I have different type of data with named rows and columns. My point is. that at some point you need to know which Python version you have and which you want (pandas require at least some versions of libraries) what type of machine learning you going to use and what type of data you going to proceed. From that point your question can get better/precise answers.

share|improve this answer

Python is installed by default in Ubuntu. Further if you want to update, try the following command when connected to the Internet.

Open a terminal and type the following command

sudo apt-get install python
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.