Skip to content

Commit

Permalink
Amended error message to remain valid when NumPy/SciPy are installed …
Browse files Browse the repository at this point in the history
…but out of date
  • Loading branch information
acganesh committed Sep 2, 2015
1 parent 4b320ce commit 6248fee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6248fee

Please sign in to comment.