diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b1173736d95fde1a7e89d51b2a6786f3ea496161..7a07e40b821e9f4782ac12ef1dcbbc4e7d3f98cd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,6 +5,7 @@ stages:
 
 pypi_publish:
   before_script:
+   - sudo apt-get install python3-venv
    - pip install build setuptools wheel
    - pip install twine
   only: