diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fff6bbdce0487a133ad690f27abeb5a988db0307..6c717f956ecdb1ff6154e5297a94d18cd05444c4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -70,11 +70,13 @@ stages:
     - echo "Testing student files"
     - pwd
     - apt-get update -y
+    - apt install -y python3-pip
     - apt install -y git
     - apt install -y xvfb # Virtual framebuffer for GL stuff.
     - apt install -y inkscape pdftk
     - apt install -y latexmk  poppler-utils # latexmk and pdftocairo
     - DEBIAN_FRONTEND='noninteractive' apt install -y texlive-latex-recommended texlive-latex-extra texlive-science pdf2svg
+    - apt install -y python
     - pip install -U Pillow
     - pip install -e ./
     - cd tests
@@ -112,6 +114,7 @@ pages:
     - pwd
     - apt-get -y update
     - apt install -y git
+    - apt install -y python3-pip
     - apt install -y inkscape pdftk # pdftk to grap pdf pages (only for converter; can probably be omitted).
     - apt install -y latexmk  poppler-utils # latexmk and pdftocairo
     - DEBIAN_FRONTEND='noninteractive' apt install -y texlive-latex-recommended texlive-latex-extra texlive-science pdf2svg