I am working on Google Colab.
I tried importing fastai without installing it by-
from fastai.vision.all import *
But it failed, and so I went on to pip install it by-
%%bash
pip uninstall fastai -y
pip install fastai
But this gives me the error mentioned in the title-
ERROR: torchtext 0.9.1 has requirement torch==1.8.1, but you’ll have torch 1.7.1 which is incompatible.
When I go ahead and try to import fastai vision import anyway, I get this-
ModuleNotFoundError: No module named ‘fastai.callback.all’; ‘fastai.callback’ is not a package
See full error message
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-4-e0ad1b014401> in <module>()
1 import platform
2 import fastai
----> 3 from fastai.vision.all import *
4 import sklearn
5 import torch
/usr/local/lib/python3.7/dist-packages/fastai/vision/all.py in <module>()
1 from . import models
2 from ..basics import *
----> 3 from ..callback.all import *
4 from .augment import *
5 from .core import *
ModuleNotFoundError: No module named 'fastai.callback.all'; 'fastai.callback' is not a package
How do I circumvent this?