From 6248fee821c6ef5ec199829e96a54bf509370bd7 Mon Sep 17 00:00:00 2001 From: Adithya Ganesh Date: Wed, 2 Sep 2015 18:50:51 -0400 Subject: [PATCH] Amended error message to remain valid when NumPy/SciPy are installed but out of date --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index cbcc65b840beb..2d783033ba177 100755 --- a/setup.py +++ b/setup.py @@ -179,13 +179,13 @@ def setup_package(): metadata['version'] = VERSION else: if is_numpy_installed() is False: - raise ImportError("Numerical Python (NumPy) is not installed.\n" - "scikit-learn requires NumPy.\n" + raise ImportError("An up-to-date version of Numerical Python (NumPy) is not installed.\n" + "scikit-learn requires NumPy >= 1.6.1.\n" "Installation instructions are available on scikit-learn website: " "http://scikit-learn.org/stable/install.html\n") if is_scipy_installed() is False: - raise ImportError("Scientific Python (SciPy) is not installed.\n" - "scikit-learn requires SciPy.\n" + raise ImportError("An up-to-date version of Scientific Python (SciPy) is not installed.\n" + "scikit-learn requires SciPy >= 0.9.\n" "Installation instructions are available on scikit-learn website: " "http://scikit-learn.org/stable/install.html\n") from numpy.distutils.core import setup