diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8bd2696a8fb1a1ddc0e2e0b6d3996d3f97482f2b..777792828d6ba09876c755f7aa4007be34d1ca18 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -24,8 +24,8 @@ build:
     <<: *global_tag_def
     stage: build
     before_script:
-        - apt-get install -y python3-pip
-        - python3 -m pip install scipy==1.11.3 --user
+        - apt-get install -y python-pip
+        - python -m pip install scipy==1.11.3 --user
     script:
         - git submodule init
         - git submodule update