ImportError: No module named 'sklearn.__check_build._check_build'

3,233 views
Skip to first unread message

Ganesh Kotrappa

unread,
May 17, 2021, 2:38:56 PM5/17/21
to spyder
ImportError: No module named 'sklearn.__check_build._check_build'
___________________________________________________________________________
Contents of C:\Python 3.8\Lib\site-packages\sklearn\__check_build:
setup.py                  _check_build.cp38-win_amd64.pyd__init__.py
__pycache__
___________________________________________________________________________
It seems that scikit-learn has not been built correctly.

If you have installed scikit-learn from source, please do not forget
to build the package before using it: run `python setup.py install` or
`make` in the source directory.

If you have used an installer, please check that it is suited for your
Python version, your operating system and your platform.
--------------
What need to be done to solve this error

yfprojects

unread,
May 18, 2021, 2:12:14 AM5/18/21
to spyder
Hello,

I would try to run the following lines in a Terminal (cmd.exe), one line at a time.

  1. `pip uninstall sklearn`
  2. `pip install numpy scipy`
  3. `pip install scikit-learn`
Kind regards
yfprojects
Reply all
Reply to author
Forward
0 new messages