I faced the same problem. I added the following code -
!pip install git+https://github.com/fastai/fastai@2e1ccb58121dc648751e2109fc0fbf6925aa8887
!apt update && apt install -y libsm6 libxext6
before these code.
from fastai.imports import *
from fastai.structured import *
from pandas_summary import DataFrameSummary
from sklearn.ensemble import RandomForestRegressor, RandomForestClassifier
from IPython.display import display
from sklearn import metrics
I am able to import fastai but when i am trying to run from fastai.imports import * , it throws an error as no module named fastai.imports found. It’s happening for fastai.structured & others as well.
I tried to run the two lines you provided but am getting an error for the second line ( !apt update && apt install -y libsm6 libxext6) as ‘apt’ is not recognized as an internal or external command, operable program or batch file.
The !pip command worked for me to get rid of the uknown module for fastai.structure error and the code ran, but… when I tried committing the Kernel to submit the results, it still showed the same error.