[英]How to install PIL on Spyder(Anaconda 3)?
当我继续使用conda install PIL进行安装时,这就是问题它给了我:
UnsatisfiableError: The following specifications were found to be in conflict:
- pil -> python 2.6*
- python 3.6*
PIL似乎不再维持。 只需安装枕头:
conda install pillow
并使用就像你安装了PIL一样:
from PIL import Image
我可以通过安装枕头版本5修复问题,请尝试一次。
conda install --channel conda-forge pillow=5
使用
from pil import Image
代替
from PIL import Image
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.