from PIL import Imageから出てくるエラー文
ImportError: The _imaging extension was built for another version of Pillow or PIL
で長時間引っかかった
調べてみるとpython 3.6 自体に問題があるようで
C:\Anaconda\lib\site-packages\PIL\Image.pyの
1 2 3 |
if PILLOW_VERSION != getattr(core, 'PILLOW_VERSION', None): raise ImportError("The _imaging extension was built for another " " version of Pillow or PIL") |
の部分を
1 2 3 |
if <strong><span style="color: #ff0000;">core.</span></strong>PILLOW_VERSION != getattr(core, 'PILLOW_VERSION', None): raise ImportError("The _imaging extension was built for another " " version of Pillow or PIL") |
に変更したら直りました。