IT/Python
[error] AttributeError: 'module' object has no attribute 'cluster'
Jang HyunWoong
2014. 12. 19. 12:14
from sklearn.cluster import KMeans
kmeans 알고리즘을 사용하려고 하려고 scikit-learn, numpy 모듈 등을 설치했는데도
다음과 같은 에러가 났을 때
AttributeError: 'module' object has no attribute 'cluster'
scikit-learn 을 설치할 때 잘 보면
Scikit-learn integrates classic machine learning algorithms.
Requires numpy-mkl.
다음과 같은 설명을 볼 수 있다.
numpy-mkl모듈도 함께 설치해야 한다~!
반응형