Skip to content

Commit

Permalink
Check if scipy is installed in startup.py
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
GageAmes committed Jun 26, 2015
1 parent 140cc21 commit ee85027
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee85027

Please sign in to comment.