测试积点老人 发表于 2022-3-3 13:24:39

请问下安装sklearn库时按照步骤安装,import sklearn

请问下安装sklearn库时按照步骤安装,import sklearn没有报错,正常,但是引入时出现No module named 'sklearn.sklearn'错误,请问怎么解决谢谢
Python 3.7.0 (default, Jun 28 2018, 08:04:48) on win32
Type "copyright", "credits" or "license()" for more information.

from sklearn.sklearn.model_selection import KFold

Traceback (most recent call last):
File "", line 1, in
from sklearn.sklearn.model_selection import KFold
ModuleNotFoundError: No module named 'sklearn.sklearn'

import sklearn

qqq911 发表于 2022-3-4 10:04:44

写一遍试试

jingzizx 发表于 2022-3-4 10:35:57

重新启动一般试试
页: [1]
查看完整版本: 请问下安装sklearn库时按照步骤安装,import sklearn