Fastai Import Errors: from PIL import Image

Has anyone been having issues with fastai imports? I did the following:

git pull
conda env update
source activate fastai

Then in the jupyter notebooks, when I run the import code, I get the following:

I’ve tried restarting jupyter notebooks but to no avail. Has anyone seen this and/or been able to fix it? Thanks!

Having the same problem since yesterday. I also did the following steps.
git pull
conda env update
source activate fastai
Earlier everything was running fine on local machine.

Looks like a problem with the new version of pillow I created the other day. I didn’t have a problem on my Mac, but for some reason you are. Try pip install pillow-simd and see if that helps. If so, I’d love to work with you to figure out the underlying cause.

I am still having the same issue after doing pip install.

I managed to fix it but unsure exactly why it worked. Here’s what I did:

pip install --upgrade pillow

Then I did
source deactivate fastai
source activate fastai

After starting up jupyter notebooks, it works again. @arpita give that a try and see if it works?

1 Like
1 Like

Thanks @djbowers. It worked :slight_smile:

I am still facing the same issue. I followed the below steps:
git pull
conda env update
pip install --upgrade pillow
source deactivate fastai
source activate fastai

Any idea what went wrong?

@alvira that’s not the same problem - it’s showing a different error in a different place. Try conda update --all.

@jeremy I did conda update-all but I am still getting the error:

@alvira it may be best to just remove your ~/anaconda3 directory and reinstall anaconda from scratch - I’ve not seen that error before, so not sure how to fix it otherwise…