diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bcd72ac1fb3a8df017db01bfa1f43b56d6dee737..6b2f2bc859b3b0b296a763c12558468fe9acca3a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,9 +17,10 @@ cache:
     - .cache/pip
 
 before_script:
+  - command -v python3 || apt-get -y install python3
   - python -V  # Print out python version for debugging
   - pip install build
-  - python3 -m venv || apt-get install python3-venv
+  - python3 -m venv || apt-get -y install python3-venv
 
 stages:
   - build