close

[Solved] ImportError in importing from sklearn: cannot import name check_build

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error ImportError in importing from sklearn: cannot import name check_build in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How ImportError in importing from sklearn: cannot import name check_build Error Occurs?

Today I get the following error ImportError in importing from sklearn: cannot import name check_build in python.

How To Solve ImportError in importing from sklearn: cannot import name check_build Error ?

  1. How To Solve ImportError in importing from sklearn: cannot import name check_build Error ?

    To Solve ImportError in importing from sklearn: cannot import name check_build Error System Variables: add C:\Python34 into path User Variables: add new: (name)PYTHONPATH (value)C:\Python34\Lib\site-packages;

  2. ImportError in importing from sklearn: cannot import name check_build

    To Solve ImportError in importing from sklearn: cannot import name check_build Error System Variables: add C:\Python34 into path User Variables: add new: (name)PYTHONPATH (value)C:\Python34\Lib\site-packages;

Solution 1

>>> from sklearn import preprocessing, metrics, cross_validation

Traceback (most recent call last):
  File "<pyshell#6>", line 1, in <module>
    from sklearn import preprocessing, metrics, cross_validation
  File "D:\Python27\lib\site-packages\sklearn\__init__.py", line 31, in <module>
    from . import __check_build
ImportError: cannot import name __check_build
>>> ================================ RESTART ================================
>>> from sklearn import preprocessing, metrics, cross_validation
>>> 

So, simply try to restart the shell!

Solution 2

After installing numpy , scipy ,sklearn still has error

Solution:

Setting Up System Path Variable for Python & the PYTHONPATH Environment Variable

System Variables: add C:\Python34 into path User Variables: add new: (name)PYTHONPATH (value)C:\Python34\Lib\site-packages;

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read