Skip to content
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

No module named 'sklearn.cluster._k_means' #3

Open
johndpope opened this issue Aug 8, 2021 · 2 comments
Open

No module named 'sklearn.cluster._k_means' #3

johndpope opened this issue Aug 8, 2021 · 2 comments

Comments

@johndpope
Copy link

pip install scikit-learn
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Requirement already satisfied: scikit-learn in /home/jp/miniconda3/envs/torch/lib/python3.8/site-packages (0.24.0)
Requirement already satisfied: scipy>=0.19.1 in /home/jp/miniconda3/envs/torch/lib/python3.8/site-packages (from scikit-learn) (1.5.4)
Requirement already satisfied: threadpoolctl>=2.0.0 in /home/jp/miniconda3/envs/torch/lib/python3.8/site-packages (from scikit-learn) (2.1.0)
Requirement already satisfied: joblib>=0.11 in /home/jp/miniconda3/envs/torch/lib/python3.8/site-packages (from scikit-learn) (1.0.0)
Requirement already satisfied: numpy>=1.13.3 in /home/jp/.local/lib/python3.8/site-packages (from scikit-learn) (1.19.4)
(torch) ➜ RetrieveInStyle git:(main) ✗ pip install scipy
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Requirement already satisfied: scipy in /home/jp/miniconda3/envs/torch/lib/python3.8/site-packages (1.5.4)
Requirement already satisfied: numpy>=1.14.5 in /home/jp/.local/lib/python3.8/site-packages (from scipy) (1.19.4)

seems like it breaks with latest
https://stackoverflow.com/questions/59881810/modulenotfounderror-no-module-named-sklearn-cluster-k-means-scikit-learn-0-2
needs to be hard coded to older version -

@johndpope
Copy link
Author

/home/jp/miniconda3/envs/torch/lib/python3.8/site-packages/sklearn/utils/deprecation.py:144: FutureWarning: The sklearn.cluster.k_means_ module is deprecated in version 0.22 and will be removed in version 0.24. The corresponding classes / functions should instead be imported from sklearn.cluster. Anything that cannot be imported from sklearn.cluster is now part of the private API.
warnings.warn(message, FutureWarning)

sklearn.cluster.k_means_ module ->

sklearn.cluster

@e4s2022
Copy link

e4s2022 commented Oct 25, 2022

Just downgrading the scikit-learn to version 0.22 works well for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants