diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8891cc0c85e6479fda3e50f6bd543854f430a349..f13168d197dceb37243908b84d9eacf3567b461f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -54,6 +54,7 @@ variables:
     - python -m pip install -r requirements.txt
     - python -m pip install fabio --upgrade --pre
     - python -m pip install silx --upgrade --pre
+    - python -m pip install pathlib2
     - python -m pip install xraylarch
     - git submodule update --init --recursive
     - python -m pip install -e .
@@ -125,6 +126,7 @@ test:test-est-tutorials_pymca:
     - python -m pip install pymca --upgrade --pre
     - python -m pip install silx --upgrade --pre
     - source ./ci/install_scripts.sh
+    - python -m pip install pathlib2
     - python -m pip install xraylarch
     - git submodule update --init --recursive
     - python -m pip install .