Fastai v0.7 install issues thread

Could any of you guys please kindly help me in installing fastai into my local mission-CPU.
while running below code, I’m getting following error:
##code: from fastai.vision import
*** error**: module ‘torch.jit’ has no attribute ‘unused’

I tried these steps to create an environment for introduction to ml course but not able to do so.
I have python3.8+ version ubuntu20. What am I doing wrong?

I get the following error
ModuleNotFoundError: No module named 'tools.nnwrap'

1 Like

This works fine for me. I add another line, which fixes sklearn import error as referenced by the official commit to old/fastai (0.7.0) directory. The complete would be:

!pip install torchvision==0.1.9
!pip install torchtext==0.2.3
!pip install fastai==0.7.0

!sed --in-place '4 c\
from sklearn.preprocessing import LabelEncoder, StandardScaler;from sklearn.impute._base import SimpleImputer as Imputer' /usr/local/lib/python3.6/dist-packages/fastai/structured.py

It’s not a good idea to make previous versions absolutely incompatible with newer versions.

can we get fastai 0.7v in paperspace? For doing machine learning course

I am new to fastai and I am working on windows. While I was running the first lesson on my jupyter notebook it is showing an error “No module named fastai.imports”

I tried many things but it didn’t workout. Can anyone please help me to sort it out?

Welcome Vinodh, hmm that’s strange, I’m not seeing any fastai.imports in lesson 1. Are you using an old version of the course? There have been a few revisions over the years. The current fastbook version (fastbook/01_intro.ipynb at master · fastai/fastbook · GitHub) has these lines at the top, with the last line in a separate cell:

!pip install -Uqq fastbook
import fastbook
fastbook.setup_book()
from fastbook import *

If you run those lines first, it should have no problem finding fastai.imports after that.