Want to report my problem maybe useful for others and maybe something to investigate.
Installing fastai on conda virtualenv get me problems trying to install Pillow-SIMD, and without trying to install Pillow-SIMD all is working.
Trying again to recreate the fastai env and install pillow-simd:
- If I install pillow-simd without uninstalling pillow using the command
from fastai.vision import *
I got an error due the fact pillow-simd is a 5.3.0.post0 release, vs pillow a 5.4.x
- Uninstalling pillow and installing again pillow-simd on the same command I got the error
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-3-c0e76450f370> in <module>
----> 1 from fastai.vision import *
~/anaconda3/envs/fastai-py37/lib/python3.7/site-packages/fastai/vision/__init__.py in <module>
2 from ..basics import *
3 from .learner import *
----> 4 from .data import *
5 from .image import *
6 from .transform import *
~/anaconda3/envs/fastai-py37/lib/python3.7/site-packages/fastai/vision/data.py in <module>
204
205 def verify_image(file:Path, idx:int, delete:bool, max_size:Union[int,Tuple[int,int]]=None, dest:Path=None, n_channels:int=3,
--> 206 interp=PIL.Image.BILINEAR, ext:str=None, img_format:str=None, resume:bool=False, **kwargs):
207 "Check if the image in `file` exists, maybe resize it and copy it in `dest`."
208 try:
AttributeError: module 'PIL' has no attribute 'Image'
Reinstalling pillow 5.3.0 got the same error.
Something is going on, no idea what but a pity I can’t use the SIMD accelleration.
Dind’t know if have something to do with my hw using Ryzen CPU and a dual GPU setup (AMD and Nvidia).