NameError: name 'untar_data' is not defined

Please help with this issue

Issue :- NameError: name ‘untar_data’ is not defined

I also tried :-

  1. from fastai.vision import all
  2. from fastai import all

but still issue is not resolved

You need from fastai.vision.all import *

2 Likes

Hey @muellerzr when i am using this line of code then again this is showing error

from fastai.collab import *
path = untar_data(URLs.ML_SAMPLE)
dls = CollabDataLoaders.from_csv_path(path/'ratings.csv')

But if I will put from “fastai.collab.all import” then error will be "ModuleNotFoundError: No module named ‘fastai.collab.all’; ‘fastai.collab’ is not a package*