Skip to content

Setup

Python Setup

All linux distributions comes with Python pre-installed. Many commad line utilities you are already using or going to use are written in Python.

To check what version of Python you have, open "Terminal" and enter following command:

python3 --version

Set Python 3 the default python

Usually on ubuntu, default version of Python is 2. We need to use Python 3 for this training and afterwards. Let's set Python 3 as default:

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1

Start Python Interpreter

Open "Terminal" and enter following command to start Python interpreter:

python
You can use the prompt >>> to enter and run some basic Python commands (e.g., 2 + 2).

Back to top