How to install PIL on Spyder(Anaconda 3)?

巧了我就是萌 提交于 2019-12-09 11:02:52

问题


This is the problem when I go on to install using conda install PIL It gives me this:

UnsatisfiableError: The following specifications were found to be in conflict:
  - pil -> python 2.6*
  - python 3.6*

回答1:


PIL seems not maintained any more. Just install pillow:

conda install pillow

and use just as if you had PIL installed :

from PIL import Image



回答2:


I'm able to fix issue by installing pillow version 5,please try once.

conda install --channel conda-forge pillow=5



回答3:


use

from pil import Image

instead of

from PIL import Image


来源:https://stackoverflow.com/questions/46717354/how-to-install-pil-on-spyderanaconda-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!