What is the correct way of installing fastai2 right now?

I used to install from pip that way:

    - git+https://github.com/fastai/fastcore.git@master
    - git+https://github.com/fastai/fastai2.git@master

What is the equivalent for installing version 2 now that the release has made public?

No, if you’re doing the dev (like you are here) fastai2 should be fastai. IE:

pip install git+https://github.com/fastai/fastai.git

1 Like

Ah okey, so readme are out of date?

You should be looking at the readme in the fastai repo, not fastai2. fastai2 will also be removed from pip soon (if it hasn’t already)

Yes, but in fastai repo tells you to install from pip and conda channel. In that way you install 1.X

Pip installs fastai 2.x and so does conda. These were both changed for the release.

I have tried them and not working! They install the previous release


name: example
  - python=3.7
  - pip  
  - ipywidgets
  - jupyterlab
  - cudatoolkit=10.2
  - fastai::fastai
  - pip:
    - pims_nd2==1.0
    - scikit-image==0.17.2
    - read-roi==1.6.0
    - opencv-python==
    - pyqt5==5.15.0
    - https://download.pytorch.org/whl/nightly/cu102/torch-1.6.0.dev20200610-cp37-cp37m-linux_x86_64.whl
    - https://download.pytorch.org/whl/nightly/cu102/torchvision-0.7.0.dev20200610-cp37-cp37m-linux_x86_64.whl
    - albumentations==0.4.5

How to install fastai v1 (only CPU)on windows anaconda? I tried installing fastai but 2.x version is getting installed? Can somebody provide any inputs? Thanks in advance!

pip install fastai1

1 Like