ModuleNotFoundError Traceback (most recent call last)
~\AppData\Roaming\Python\Python36\site-packages\sklearn\__check_build\__init__.py in <module>()
43 try:
---> 44 from ._check_build import check_build # noqa
45 except ImportError as e:
ModuleNotFoundError:没有名为“sklearn.__check_build._check_build”的模块
在处理上述异常的过程中,发生了另一个异常:
ImportError Traceback (most recent call last)
<ipython-input-1-f14d678f34eb> in <module>()
1 from keras.models import Sequential
2 from keras.layers import Dense, Dropout
----> 3 from sklearn.model_selection import train_test_split
4 import numpy
5 import pandas as pd
~\AppData\Roaming\Python\Python36\site-packages\sklearn\__init__.py in <module>()
61 # process, as it may not be compiled yet
62 else:
---> 63 from . import __check_build
64 from .base import clone
65 from .utils._show_versions import show_versions
~\AppData\Roaming\Python\Python36\site-packages\sklearn\__check_build\__init__.py in <module>()
44 from ._check_build import check_build # noqa
45 except ImportError as e:
---> 46 raise_build_error(e)
~\AppData\Roaming\Python\Python36\site-packages\sklearn\__check_build\__init__.py in raise_build_error(e)
39 to build the package before using it: run `python setup.py install` or
40 `make` in the source directory.
---> 41 %s""" % (e, local_dir, ''.join(dir_content).strip(), msg))
42
43 try:
ImportError:没有名为“sklearn.__check_build._check_build”的模块
Contents of C:\Users\owaisaaa\AppData\Roaming\Python\Python36\site-packages\sklearn\__check_build:
setup.py _check_build.cp36-win32.pyd__init__.py
__pycache__
科学学习似乎没有被正确地建立起来。
如果您已经安装了scikit-从源代码中学习,请不要忘记在使用它之前构建包:在源目录中运行python setup.py install
或make
。
如果您使用了安装程序,请检查它是否适合您的Python版本、操作系统和平台。
最近,我在同一台机器上使用了py魅力,并下载了其中的包。从那一刻起,我就会在我的笔记本上看到上面提到的错误。
发布于 2019-04-13 17:49:01
试着安装shell并重新启动python shell。
发布于 2022-08-17 18:19:26
升级科学工具包-学习对我来说是有用的:
$ pip install --upgrade scikit-learn
https://stackoverflow.com/questions/55665923
复制相似问题