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.spectral' #6

Open
gejinhuan opened this issue Apr 20, 2022 · 5 comments
Open

No module named 'sklearn.cluster.spectral' #6

gejinhuan opened this issue Apr 20, 2022 · 5 comments

Comments

@gejinhuan
Copy link

I got this issue when I was running the example included in the package. Actually, I have installed the updated version of sklearn and scikit-learn. I have tried python37, 39 and 10 versions, but the issue is still happened. My OS is macos and the environment is Jupyter-lab. Thanks!

@zjtggssg
Copy link

请问解决了吗我也遇到了

@ouweiting
Copy link

I solved this by using Python3.6 and sklearn0.19.0

@LWShowTime
Copy link

You guys can run the sample code? Where did you find the dataset?

@Gemaxis
Copy link

Gemaxis commented Mar 20, 2023

This issue can be solved by installing python==3.6 && sklearn==0.19.0(Command: pip install scikit-learn==0.19)

@Cdd-zz
Copy link

Cdd-zz commented Mar 11, 2024

if you cannot find spectral, maybe check the folder of sklearn when you run "import sklearn.cluster.spectral". I found that my folder did not have "spectral.py" but have "_spectral.py" and I found “discretize”. Then I change the code with "_spectral"

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

6 participants