简体   繁体   中英

How to install PIL on Spyder(Anaconda 3)?

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*

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

我可以通过安装枕头版本5修复问题,请尝试一次。

conda install --channel conda-forge pillow=5

use

from pil import Image

instead of

from PIL import Image

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM