Skip to content
Snippets Groups Projects
Commit 5b3a3e28 authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Complain if Python and NumPy versions are too old for MLlib

parent 938e4a0e
No related branches found
No related tags found
No related merge requests found
...@@ -18,3 +18,13 @@ ...@@ -18,3 +18,13 @@
""" """
Python bindings for MLlib. Python bindings for MLlib.
""" """
# MLlib currently needs Python 2.7+ and NumPy 1.7+, so complain if lower
import sys
if sys.version_info[0:2] < (2, 7):
raise Exception("MLlib requires Python 2.7+")
import numpy
if numpy.version.version < '1.7':
raise Exception("MLlib requires NumPy 1.7+")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment