0

For some odd reason when I do “import sklearn” it says ModuleNotFound or something like that. Can anyone please help?

I tried going online and using bash to fix it but still didn’t work.

1
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Commented Dec 2, 2022 at 18:04

1 Answer 1

1

open a shell in the workspace with ctrl-shift-s on mac command-shift-s command prompt and run this command, it will install scikit

pip install scikit-learn

5
  • This doesnt work
    – Anon
    Commented Dec 2, 2022 at 15:23
  • what IDE are you using ? Commented Dec 2, 2022 at 15:24
  • I did “from sklearn import tree” and it says it isn’t a module and I tried your way on the replit shell and said no directory
    – Anon
    Commented Dec 2, 2022 at 15:26
  • I use replit as my IDE
    – Anon
    Commented Dec 2, 2022 at 15:26
  • i edited the response you must open replit shell and run the command, also replit install package dynamically try to add the import in the top of the file Commented Dec 2, 2022 at 15:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.