ImportError in importing from sklearn: cannot import name check_build

ayush singhal picture ayush singhal · Mar 7, 2013 · Viewed 235.1k times · Source

I am getting the following error while trying to import from sklearn:

>>> from sklearn import svm

Traceback (most recent call last):
  File "<pyshell#17>", line 1, in <module>
   from sklearn import svm
  File "C:\Python27\lib\site-packages\sklearn\__init__.py", line 16, in <module>
   from . import check_build
ImportError: cannot import name check_build

I am using python 2.7, scipy-0.12.0b1 superpack, numpy-1.6.0 superpack, scikit-learn-0.11 I have a windows 7 machine

I have checked several answers for this issue but none of them gives a way out of this error.

Answer

Sawan picture Sawan · Oct 8, 2014

Worked for me after installing scipy.