From ee85027e643ff9b75c0512b214d21cdd5aa4a62f Mon Sep 17 00:00:00 2001 From: Gage Ames Date: Thu, 25 Jun 2015 20:44:48 -0700 Subject: [PATCH] Check if scipy is installed in startup.py scipy is a prerequisite of sklearn, so it needs to be installed as well. Without this change, an `ImportError` will be thrown by `import sklearn` even if sklearn is installed. --- tools/startup.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/startup.py b/tools/startup.py index e137faf9b2f..4f5b86f7c00 100644 --- a/tools/startup.py +++ b/tools/startup.py @@ -13,6 +13,12 @@ except ImportError: print "you should install numpy before continuing" +print "checking for scipy" +try: + import scipy +except: + print "you should install scipy before continuing" + print "checking for sklearn" try: import sklearn