ModuleNotFoundError: No module named 'fastai'
I reinstalled this GitHub version of fastai to correct this problem
pip uninstall fastai
pip install https://github.com/fastai/fastai1/archive/master.zip
So, for another newbie like me, here's what was going on.
Anaconda is its own python environment, it installs its own python packages and python binary, and it changes the PATH so references to python resolve to it instead.
My conda install -C fastai
calls had actually not finished successfully, conda list | grep fastai
was empty, showing it hadn't installed, and when I tried to reinstall, I actually saw that it fails due to incompatibility / conflict issues with wrapt
I also had jupyter
installed thru pip, so it was probably not using anaconda's environment anyway.
I had to create a new environment, reinstall, and then it finally worked!
conda create -n fastai python=3.7 #New blank slate env
conda activate fastai
conda install -c pytorch -c fastai fastai #No erors this time
conda list | grep fastai #It shows up now!
At this point, the previous install of jupyter started breaking, so I reinstalled it with conda install jupyter
, and then everything finally worked!
I had the same issue, I fixed this by going to the fastai github page https://github.com/fastai/fastai & looking at the latest version.
then i installed it like this:
!pip install fastai==2.2.5
import fastbook
fastbook.setup_book()
I am working through the exercises on Google's Colab at: https://colab.research.google.com/github/fastai/fastbook/blob/master/01_intro.ipynb