Attempting to do inference using FastAPI: Getting "ModuleNotFoundError: No module named 'ipykernel'" error

Attempting to use the “bears” classification model in production … getting this error on import:

from fastai2.learner import load_learner
ModuleNotFoundError: No module named 'ipykernel'

Installed fastai2 via pip.

Am I missing something here? Attempting to find what base imports are required for inference so its likely I’m missing something.

1 Like

@wgpubs did you ever figure this out? if you did, do you mind sharing the project on github? I must be missing something with pip installs.

Yah. Just pip install ipykernel or add it to your requirements.txt file.

1 Like