How do I run Python 3?

sudo apt-get install python3

Then

python3

Whether or not Python 3 is installed after installation or not depends mostly on the flavour and version. If a package depends on Python 3 it will be installed.

The best indication on whether it will come with the standard desktop installation is by checking the manifest files for the installation images.

Manifest files:

  • 12.04.2 amd64 regular Unity desktop
  • 12.04.2 i386 regular Unity desktop

Both do not contain anything with python3. However,

  • 13.04 amd64 regular Unity desktop

does have lots of python3 packages.

This means that for 12.04 you'll probably need to install it afterwards: python3 Install python3. Use the link to install using the Software Centre or run:

sudo apt-get install python3

Then invoke the new Python 3 shell using

python3

Note that Python 2.7 will still be present and will stay the default.