diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 31d463dc51bfe4cac1f50e4404537d536eddc2c6..e517aa2df9b3d10a1ea07df4084de8d24cf2571b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,7 +5,9 @@ default:
         - source /opt/intel/oneapi/tbb/latest/env/vars.sh
         - echo $(nproc)
         - printenv | sort
-        - apt-get install python3-scipy==1.15 python3-vtk==9.3.0 python3-matplotlib==3.10.0 python3-numpy==2.2.3
+        - apt-get update && apt-get install -y python3-pip
+        - pip install scipy==1.15.1 vtk==9.3.0 matplotlib==3.10.0 numpy==2.2.3  # Install the specified packages
+        - pip list  # Print the list of installed packages and their versions
 
 .global_tag: &global_tag_def
     tags: