简体   繁体   English

如何在Spyder(Anaconda 3)上安装PIL?

[英]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: 当我继续使用conda install PIL进行安装时,这就是问题它给了我:

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

PIL seems not maintained any more. PIL似乎不再维持。 Just install pillow: 只需安装枕头:

conda install pillow

and use just as if you had PIL installed : 并使用就像你安装了PIL一样:

from PIL import Image

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

conda install --channel conda-forge pillow=5

use 使用

from pil import Image

instead of 代替

from PIL import Image

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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