Colab problem with "Running your first notebook"

When I’m changing to GPU I get an error:

ModuleNotFoundError: No module named ‘fastai.vision.all’

If I run the same cell with None (instead of GPU) It works (take a lot of time but it works)
I’ve tried TPU as well but I get the same issue as the GPU.

Do you know how to fix it? can I rely on Colab?

Thanks,
Gal

Hi @galosa,

That is a version problem on Colab, by default :
import fastai
fastai.version

returns 1.0.61 for me.
You should upgrade it, for example :
!pip install fastai==2.0.6

Hope it helps!

Charles

Thank you, I will try that.
BTW I did the upgrade as the document suggested before starting.

Anyhow to not waste any more time I switched to “Paperspace Gradient”.
Thank you again

Hi Gal

This works for me but set the runtime type to GPU before you start otherwise you have to run everything again. You will need a Google Drive (15GB free)

Regards

!pip install -Uqq fastbook

import fastbook

fastbook.setup_book()

from fastbook import *

from fastai.vision.all import *