How to install PIL on Spyder(Anaconda 3)?

前端 未结 3 914
借酒劲吻你
借酒劲吻你 2021-02-07 13:39

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 confli         


        
相关标签:
3条回答
  • 2021-02-07 13:55

    use

    from pil import Image
    

    instead of

    from PIL import Image
    
    0 讨论(0)
  • 2021-02-07 14:06

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

    conda install --channel conda-forge pillow=5
    
    0 讨论(0)
  • 2021-02-07 14:22

    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
    
    0 讨论(0)
提交回复
热议问题