diff --git a/install-centos.sh b/install-centos.sh
index 60e111ed6553973d0df521e8bb165263914d1e8b..a2343b4f513acad645295767b53b39bc55b3baab 100755
--- a/install-centos.sh
+++ b/install-centos.sh
@@ -52,6 +52,9 @@ if [ "$install_fodproper" = 0 ]; then
   echo "Setup partial python environment for FoD"
   virtualenv-3 /srv/venv
   source /srv/venv/bin/activate
+
+  #fix for broken anyjson and cl
+  pip install 'setuptools<58'
   pip install -r requirements.txt
 
 else
@@ -90,6 +93,8 @@ else
 		cp -f settings.py.dist settings.py
 		patch settings.py < settings.py.patch
 	)
+
+        pip install 'setuptools<58'
 	pip install -r requirements.txt
 
 	touch flowspy/settings_local.py
diff --git a/requirements.txt b/requirements.txt
index 037736b9324a16302ffeda84997e0af8513b8b86..4e5b414d6ab2c76061bf38d4364c1b646105f02e 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,4 @@
+setuptools<58
 argparse
 cl
 celery==4.4.0
@@ -34,4 +35,3 @@ appdirs
 anyjson
 cryptography
 redis
-