4👍
✅
You have wrong import, You should import KNeighborsClassifier
like this:
from sklearn.neighbors import KNeighborsClassifier
Source:stackexchange.com