ModuleNotFoundError:没有名为“ sklearn.neighbours”的模块

时间:2019-12-19 05:48:01

标签: python django scikit-learn module sklearn-pandas

我是机器学习的初学者,但确实发现了问题所在 这个模块

错误 ...

from sklearn.neighbours import KNeighborsClassifier
ModuleNotFoundError: No module named 'sklearn.neighbours'


1 个答案:

答案 0 :(得分:1)

您导入错误,应像这样导入KNeighborsClassifier

from sklearn.neighbors import KNeighborsClassifier