I installed Ubuntu 12.10 in my VirtualBox. Is python installed by default? If not, How can I install python?
python --version in a terminal will show you which version of python is currently installed. Python does come by default on ubuntu 12.10 (version 2.7.3) source
edit: it has come to my attention that not only is python (2.7.3) available, but also python3 (3.2.3)
Yes, it is installed by default. All Linux distros that I am aware of install python as a lot of default scripts are python.
If you want to see if a piece of software is installed and if there are multiple versions of it, what versions you have installed on your system, this is a good way to find them:
aptitude search ^python[0-9] | grep ^i
If you ever find yourself wanting to install python:
aptitude install python
Hope that helps.
It seems that intent to assign the "python" command to python3 eventually ceased; "python" still means python2 on many systems.
So, issue two commands,
python2 --version and
python3 --version (and also
python --version to be sure).
This won't reveal any private or isolated installations.
How can I install python?
First, decide which version and features you want (plain python, scientific/math, ipython...)