diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1fe5aaff8098119b89a292a7de5e5ecafc14c2d5..d5d35f44511bc4113c165753ccc4cb56491c2e98 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -100,7 +100,9 @@ minimal-windows:
     - source activate pystencils_dev
     - env
     - conda env list
-    - conda install `grep -Eo 'sympy[>=]+[0-9\.]+' setup.py | sed 's/>/=/g'`
+    - grep sympy setup.py
+    - grep -Eo 'sympy[>=]+[0-9\.]+' setup.py | sed 's/>/=/g'
+    - conda install sympy==1.2
     - pip install git+https://gitlab-ci-token:${CI_JOB_TOKEN}@i10git.cs.fau.de/pycodegen/pystencils.git@master#egg=pystencils
     - python -c "import numpy"
     - python setup.py quicktest