diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d35ffbfed3ce6a0f9ea67181503edb08f6d6649c..8af55b3b6555f761889363359da39aa37067cbfa 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -23,6 +23,9 @@ stages:
 build:
     <<: *global_tag_def
     stage: build
+    before_script:
+        - apt install python3-pip
+        - python3 -m pip install scipy==1.11.3 --user
     script:
         - git submodule init
         - git submodule update