-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: cannot import name '_k_means' #26
Comments
I'm not 100% sure, but it appears that
I got the code running using:
But I am getting some new errors in the function
The error reads:
Despite that, I hope this is of any help. |
@rtrad89 Thanks. I also made the same changes to the code and got the same 'TypeError'. Hope for the next version. |
@Randool would you please confirm whether you have the latest In my local version of the aforementioned
While in the online github version, it is in the correct form:
|
@rtrad89 I read the source code and found this change, so I commented this line. But I remember the result is still disappointing. |
It seems that downgrading the sklearn to the older version of 0.20.0 can solve the problem. |
Thanks! That's the right solution! |
This is a workaround, not a solution. |
Oh, I see this has been taken care of in the develop branch of the original repo, as @rtrad89 pointed out above. |
haha, looking forward to the next version :> @glicerico |
Just reporting that downgrading only to If you are using
|
Hi. I install spherecluster using
pip install spherecluster
successfully in Ubuntu 18.04. But when I callfrom spherecluster import SphericalKMeans
, I got an ImportError.Here is my environmental information:
If anyone can help me, I would really appreciate it!
The text was updated successfully, but these errors were encountered: