---
# System prepended metadata

title: Installation of Python

---

# Installation of Python

In this lecture we use Python as our programming language. Download the installer here:
* [Windows (64-bit)](https://www.python.org/ftp/python/3.8.6/python-3.8.6-amd64.exe) 
* [Windows (32-bit)](https://www.python.org/ftp/python/3.8.6/python-3.8.6.exe)
* [MacOSX](https://www.python.org/ftp/python/3.8.6/python-3.8.6-macosx10.9.pkg)

>If you use Linux type the following in the command Line:
>``$ sudo apt-get update``
>``$ sudo apt-get install python3.8``

1. Open the downloaded Python installer.   
**Make sure to check the "Add Python 3.8 to PATH" mark!**
![](https://i.imgur.com/Zxao4u1.png)

2. Klick in Install Now. This may take a while.
![](https://i.imgur.com/E0oGnui.png)

3. To finish the installation click "Close".
![](https://i.imgur.com/ZF31rf2.png)

To check if you successfully installed Python open up a new Command Prompt Window (in MacOSX or Linux a new Terminal). For that press the Windows key <kbd>![](http://i.stack.imgur.com/T0oPO.png)</kbd> and enter `cmd` and hit enter. 
> For MacOSX press <kbd>&#8984;</kbd> and enter `Terminal`
> For Linux press the "Super key" and enter `Terminal`

A new Command Prompt window opens up which should look something like this:
![](https://i.imgur.com/pg9sHZk.png)  

Next enter ``python --version`` in the Command Prompt and hit enter.
> For MacOSX and Linux enter ``python3 --version`` and hit enter.

![](https://i.imgur.com/QSJqgrA.png)
You should see the currently installed version of Python.

# Installation of Jupyter Lab

In the tutorials we use Jupyter Lab for the presentation to install it open up a Command Prompt window (or Terminal). Enter ``pip install jupyterlab`` in the Command Prompt
> For MacOSX and Linux enter 
> ``$ pip3 install jupyterlab``
>
![](https://i.imgur.com/MlJ3neI.png)

To open Jupyter lab type ``jupyter lab`` in your Command Prompt. A new browser window pops up with jupyter lab. Don't close your Command Prompt while working in jupyter lab. ([Here](https://jupyterlab.readthedocs.io/en/latest/user/interface.html) is the documentation of the Jupyter Lab Interface and how to use it)

# IDE
To write your own python code outside jupyter lab you can use any texeditor but we recommend to use an IDE (integrated development enviornment) which provides better syntax highlighting, text editing, debugging and many other helpful features.  
Some common IDEs:
* [Visual Studio Code](https://code.visualstudio.com/) (recommended)
* [Pycharm](https://www.jetbrains.com/de-de/pycharm/)
* [Sublime Text](https://www.sublimetext.com/)

# Discord
For the question sessions and code reviews we use [Discord](https://discord.com/download). There is an in-browser version, but we highly recommend installing the desktop version, as it supports more features and options. After Installing Discord and setting up your account you can join our server through the following Link: https://discord.gg/UGSDbsz

Make sure your microphone/speaker/screen sharing/webcam (webcam is only needed during code reviews) work with discord. [Here](https://support.discord.com/hc/de/articles/360045138571-Beginner-s-Guide-to-Discord) is a tutorial.

When you first join the discord server you see the "groupselection" textchannel. Click on the green mark to select that you attend the course "Informatics 2".
    
  ![](https://i.imgur.com/CzrGPqP.png)

  After that you have been granted the correct student role and you should see the following channels on the left side of discord:

  ![](https://i.imgur.com/ULo9jhV.png)
  Those channels which are marked with a "#" symbol are text channels only (see 1, 2) and those channels with the "&#128266;" symbol are voice channels only (see 3, 4).  

  1. The "infos" text channel is used by the tutors to communicate with students. (This is a read-only channel)
  2. The "chat" text channel can be used by students to ask questions during question hour.
  3. The "Lobby" voice channel is used by students to wait for their personal talk with a tutor, for example code reviews, very specific questions that can't be answerd in the TC Forum/question hour, ... (students have to enter this channel so tutors can see and move them to their private room)
  4. The "TUTORIEN" voice channels are used by the tutors for question hours (you can join them during question hour)



