As of the evening of the 24th (NY time) fastai no longer works on Kaggle – fastai

import fastbook 
fastbook.__version__

Yields the following error message:


ModuleNotFoundError Traceback (most recent call last)
/tmp/ipykernel_27/2421650160.py in
—-> 1 import fastbook
2 fastbook.version

ModuleNotFoundError: No module named ‘fastbook’

I already executed “!pip install fastai –upgrade ” previously and everything worked fine up until said moment. Has anyone else run into the same problem and figured out a way around it? My guess is that pytorch was upgraded and now there are compatibility issues.

My apologies if this post is in the wrong section. First-time commenter.


You need to do pip install fastbook. It’s a separate package from fastai

Thank you very much, I misread your earlier reply. It’s odd that I got it to work before without “!pip install fastbook”, but the problem is fixed, and hopefully, will help anyone else who runs into something similar.

Read more here: Source link