diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 79d4ec2b542f488e22846c3d3edd63bb6ce838b1..d4ef9578d53ae54e0ed165443f6b05b890d3f553 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,7 +4,7 @@ tests:
     tags:
         - docker
     script:
-        - pip3 install --upgrade setuptools wheel
+        - pip3 install --upgrade setuptools wheel packaging
         - if [ -f requirements.txt ]; then pip3 install -r requirements.txt; fi
         - pip3 install -e .
         - pip3 install -e .[test]
@@ -24,7 +24,7 @@ doc:
     script:
         - export LC_ALL=$(locale -a | grep en_US)
         - export LANG=$(locale -a | grep en_US)
-        - pip install --upgrade setuptools wheel
+        - pip install --upgrade setuptools wheel packaging
         - if [ -f requirements.txt ]; then pip3 install -r requirements.txt; fi
         - pip3 install -e .
         - pip3 install -e .[doc]