diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3a3137e7426f3fa9b221f6698dfdded81bd438a6..dcfab8c1b76affbe530ef0c427fc866024b3a78d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,7 +2,8 @@ image: ubuntu
 
 before_script:
   - apt-get -qq update -y && apt-get -qq upgrade -y
-  - apt-get -qq install -y build-essential
+  - apt-get -qq install -y python-pip python-dev build-essential
+  - pip install --upgrade pip
   - pip install virtualenv
 
 mytestrunner: