"Untar_data not working: need to import from fastai" problem on Vscode

Hello all, I’m now in this context.

I’ve imported fastai and run from fastai import * and from fastai.vision import *, However, I can’t find untar_data in the fastai, and I’ve tried the following solution but unfortunately none of them works on me.

conda update conda -y --all
pip install fastai --upgrade
conda update fastai -c fastai -c pytorch -c conda-forge
conda install -c pytorch -c fastai fastai
conda update -c fastai fastai

But it still shows
NameError Traceback (most recent call last)
in
----> 1 help(untar_data)

NameError: name ‘untar_data’ is not defined

My fastai version is 2.1.8.

Try:

from fastai.vision.all import *
help(untar_data)

Have a look at fastbook and fastai docs (including links to runnable notebooks).

3 Likes

This works! I never image this could be so easy :rofl: Thank you!!