I followed the instructions for pillow-simd from the docs and setup my environment using the snippet below. It appears conda install -yc conda-forge libjpeg-turbo
is currently installing pillow-6.1.0
and pip install pillow-simd
is installing pillow-simd-6.0.0.post0
, which is causing fastai import to fail.
conda install pytorch torchvision cudatoolkit=10.0 -c pytorch
conda install -c fastai fastai
conda uninstall -y --force pillow pil jpeg libtiff libjpeg-turbo
pip uninstall -y pillow pil jpeg libtiff libjpeg-turbo
conda install -yc conda-forge libjpeg-turbo
CFLAGS="${CFLAGS} -mavx2" pip install --upgrade --no-cache-dir --force-reinstall --no-binary :all: --compile pillow-simd
conda install -y jpeg libtiff
from fastai.vision import *
ImportError: The _imaging extension was built for another version of Pillow or PIL:
Core version: 6.0.0.post0
Pillow version: 6.1.0
Q: Is it possible to safely downgrade pillow to 6.0.0 or should I wait for pillow-simd to get upgraded? What is the best way to resolve this issue?