afaq
afaq

Reputation: 109

Unable to locate KMeans from sklearn python

I've installed sklearn using pip install -U scikit-learn command and its successfully installed at c:\python27\lib\site-packages but when i'm importing from sklearn.cluster import KMeans it gives me error. Error Detail. I've checked the package C:\Python27\Lib\site-packages\sklearn and its there. How can I get rid of this.

numpy,scipy,sys

Upvotes: 1

Views: 1764

Answers (1)

sascha
sascha

Reputation: 33542

Now with your screenshot given, here is the problem:

Now i see you are on windows and installing scipy there is hard. But please: take your time to search here on SO, as this is asked every day and the answer is still the same. Read the official docs and take a decision on which route to go (not pip install scipy!).

Upvotes: 1

Related Questions