regarding import sklearn

Skip to first unread message

Akash Shankar PS

Dec 19, 2022, 12:42:49 PM12/19/22
to spyder
i am  getting a error when i  importing skleran

  File "C:\Program Files\Spyder\pkgs\spyder_kernels\", line 356, in compat_exec
    exec(code, globals, locals)

  File "c:\users\91805\.spyder-py3\", line 3, in <module>
    from sklearn.impute import SimpleImputer

  File "C:\Users\91805\AppData\Local\Programs\Python\Python311\Lib\site-packages\sklearn\", line 81, in <module>
    from . import __check_build  # noqa: F401

  File "C:\Users\91805\AppData\Local\Programs\Python\Python311\Lib\site-packages\sklearn\__check_build\", line 50, in <module>

  File "C:\Users\91805\AppData\Local\Programs\Python\Python311\Lib\site-packages\sklearn\__check_build\", line 31, in raise_build_error
    raise ImportError(

ImportError: No module named 'sklearn.__check_build._check_build'
Contents of C:\Users\91805\AppData\Local\Programs\Python\Python311\Lib\site-packages\sklearn\__check_build:               __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 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.
Reply all
Reply to author
0 new messages