diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c2eb53c682dbab6fb8a3ab5632ec7dc8adcc0b2b..1e3717fd7b927ba0c9f2fefa7ca3852b6f55bd26 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,6 +16,8 @@ stages:
 .build:
   stage: build
   script:
+    # Install prerequisites for pyinstaller
+    - yum install -y zlib-devel
     # Install python 3
     - curl -s -L -o ${PYTHON_ROOT}.zip https://gitlab.synchrotron-soleil.fr/software-control-system/devtools/python3/-/jobs/artifacts/3.6.13/download?job=${PLATFORM}
     - unzip -q ${PYTHON_ROOT}.zip -d ${CI_PROJECT_DIR}