diff --git a/setup.py b/setup.py
index 9348c37b590c6fce145f252ca89911fe910ad394..5b6c464b7e4a7167bb8a308c6772afa07e34a9a9 100644
--- a/setup.py
+++ b/setup.py
@@ -5,9 +5,12 @@ The km3io setup script.
 
 """
 from setuptools import setup
+import sys
 
 with open('requirements.txt') as fobj:
     requirements = [l.strip() for l in fobj.readlines()]
+    if sys.version_info[:2] == (3, 5):
+        requirements.append("llvmlite==0.31.0")
 
 try:
     with open("README.rst") as fh: