Open mmrmas opened 2 years ago
This is a good suggestion, I applied it and tested a few times and still (occasionally) got the PIP error. I used different notebook cells to separate the imports from the installations and realized that fastai seems to be the package that introduces a conflict with the packages installed by default on a new code session. See the screenshot below:
Then installing fastai without the -U flag results in a normal installation:
So for this (and future notebook) we drop the -U flag for pip.
This issue will be open for a couple of days in case there are more comments from the class, after that it will be closed 👍
The first step in the original script throws an error.
It is resolved by first importing the top 4 dependencies and then install the packages as shown below
Import dependencies for all sample AI applications (again, to test the environment)
import os import numpy import pandas import torch
Install packages (comment if not required)
!pip install -Uqq ipywidgets fastai fastbook