regarding import sklearn

14 views
Skip to first unread message

Akash Shankar PS

unread,
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\py3compat.py", line 356, in compat_exec
    exec(code, globals, locals)

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

  File "C:\Users\91805\AppData\Local\Programs\Python\Python311\Lib\site-packages\sklearn\__init__.py", 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\__init__.py", line 50, in <module>
    raise_build_error(e)

  File "C:\Users\91805\AppData\Local\Programs\Python\Python311\Lib\site-packages\sklearn\__check_build\__init__.py", 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:
_check_build.cp311-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.
Reply all
Reply to author
Forward
0 new messages