Colab: avoid pip install fastai2 on every notebook

I added the course-v4 repo to my Drive. Is there a way to avoid installing fastai2 !pip install fastai2 on every notebook I open from the course-v4/nbs repository?

Could be nice to do this once.

You can use “!pip install -r /content/fastbook/requirements.txt” to install all the requirement.
example:

1 Like

No. Colab works on instances. You don’t get the same one each time so you need to install fastai2 each time.