Skip to content
python sklearn import bug in classrooms
Profile icon

Module import works fine in a standalone repl but not always within a classroom e.g. try

import sklearn

within a classroom and you'll see the error:

ModuleNotFoundError: No module named 'sklearn'

As I say, things work fine in a standalone repl where this line caused the following output:

Collecting scikit_learn
Downloading (6.7MB)

Anyone else see this behaviour too ?

You are viewing a single comment. View All
Profile icon

sorted using requirements.txt, but strange that problem only happens inside classroom. lack of response by replt folks disappointing too seeing as I have a paid subscription and use the classroom with >200 students. t