@Pomo, When you run:
pip install fastai2 fastcore --upgrade
You are getting your fastai2
from pypi
. That version is 0.0.16, it was released on March 30th 20220.
The reason why your are seeing the following message:
is because, you are trying to install the fastai2 last version found at pypi
, and you already have it on your local machine. Therefore, the Requirement already satisfied
As for the other notebook:
In that notebook, they most likely installed the latest version of fastai2 (0.0.17 as of today) using one the 2 following options:
Option 1: From Github - Non editable version
you have to install directly from the fastai2 master branch like this:
pip install git+https://github.com/fastai/fastai2.git
As a good practice, you have to install fastcore at the same time, like this:
pip install git+https://github.com/fastai/fastcore.git
Option 2: From Github - Editable version
- Installing the
fastai2
editable version
git clone https://github.com/fastai/fastai2
cd fastai2
pip install -e .
- Installing the
fastcore
editable version
git clone https://github.com/fastai/fastcore
cd fastcore
pip install -e .
Every time, you want to upgrade to latest version of both fastai2
and fastcore
, you run (from the corresponding folder):
git pull
This is already a long answer but if you would like to learn more about this subject, I wrote this blog post: 3 ways to pip install a package: fastai2 use-case where you will find a more detailed answer.