机器学习的sklearn库安装

img

python报这个问题怎么解决


Traceback (most recent call last):
  File "E:\module\learn\Python\lib\site-packages\sklearn\__check_build\__init__.py", line 48, in <module>
    from ._check_build import check_build  # noqa
ImportError: DLL load failed while importing _check_build: 找不到指定的程序。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\学习资料\编程项目\Python\机器学习\01_特征工程\01_数据集.py", line 31, in <module>
    from sklearn.datasets import load_iris
  File "E:\module\learn\Python\lib\site-packages\sklearn\__init__.py", line 81, in <module>
    from . import __check_build  # noqa: F401
  File "E:\module\learn\Python\lib\site-packages\sklearn\__check_build\__init__.py", line 50, in <module>
    raise_build_error(e)
  File "E:\module\learn\Python\lib\site-packages\sklearn\__check_build\__init__.py", line 31, in raise_build_error
    raise ImportError(
ImportError: DLL load failed while importing _check_build: 找不到指定的程序。
___________________________________________________________________________
Contents of E:\module\learn\Python\lib\site-packages\sklearn\__check_build:
_check_build.cp39-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.

进程已结束,退出代码为 1

scikit-learn卸载重装
pip uninstall scikit-learn
pip uninstall sklearn
conda install scikit-learn 或者 pip install sklearn