diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d4ef9578d53ae54e0ed165443f6b05b890d3f553..03e5fdb252a29766dd6fbf275ee987977c4012b3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,7 +4,7 @@ tests:
     tags:
         - docker
     script:
-        - pip3 install --upgrade setuptools wheel packaging
+        - pip3 install --upgrade setuptools wheel
         - 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 packaging
+        - pip3 install --upgrade setuptools wheel packaging
         - if [ -f requirements.txt ]; then pip3 install -r requirements.txt; fi
         - pip3 install -e .
         - pip3 install -e .[doc]
@@ -46,8 +46,9 @@ pages:
     script:
         - export LC_ALL=$(locale -a | grep en_US)
         - export LANG=$(locale -a | grep en_US)
-        - pip install --upgrade setuptools wheel
-        - pip3 install -e .[doc]
+        - pip3 install --upgrade setuptools wheel packaging
+        - pip3 install -e .
+        - pip3 install -e . [doc]
         - rm -Rf build
         - python3 setup.py build_sphinx
         - cp -r build/sphinx/html public