Jun-02-2021, 02:18 PM
It sounds like you are running into environment problems. Spyder is likely running in an environment that does not include your sklearn library.
Are you using Anaconda? venv?
What is probably your easiest solution is installing Spyder with Anaconda, then use Anaconda to create an environment for your project (this is good form, not required). Then using cmd as an administrator you pip install sklearn. Add it to your new environment (if you created one) and you are set.
Are you using Anaconda? venv?
What is probably your easiest solution is installing Spyder with Anaconda, then use Anaconda to create an environment for your project (this is good form, not required). Then using cmd as an administrator you pip install sklearn. Add it to your new environment (if you created one) and you are set.