Skip to content
python sklearn import bug in classrooms
Profile icon
DougLeith_17

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 https://files.pythonhosted.org/packages/9f/c5/e5267eb84994e9a92a2c6a6ee768514f255d036f3c8378acfa694e9f2c99/scikit_learn-0.21.3-cp37-cp37m-manylinux1_x86_64.whl (6.7MB)

Anyone else see this behaviour too ?

You are viewing a single comment. View All
Profile icon
DougLeith_17

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