Google Colab-ModuleNotFoundError: No module named 'fastai.conv_learner'

Hi All
I am getting the below error all of a sudden in Google colabs
The imports for fastai were all working fine till few days back.


ModuleNotFoundError Traceback (most recent call last)
in ()
1 from fastai.imports import *
----> 2 from fastai.conv_learner import *
3 from fastai.dataset import *
4 from fastai.model import *
5 from fastai.sgdr import *

ModuleNotFoundError: No module named ‘fastai.conv_learner’

Fastai has been updated to v1. You will need to use the old api located under ./old/fastai/ folder.

Hi Bharat
Thanks for replying. Where is the ./old/fastai/folder located. I could not see anything when I ran the below command in google colab
!ls /usr/local/lib/python3.6/dist-packages/
or !ls /usr/local/lib/python3.6/dist-packages/fastai

run !pip install fastai==0.7.0 , you shouldn’t face any issues after that

5 Likes

Perfect, it worked. Many thanks

1 Like

Thank you …worked for me as well