Package (Python PIL/Pillow) installed but I can't import it

前端 未结 3 1579
悲哀的现实
悲哀的现实 2020-12-03 16:01

I\'ve been using python for simple data processing scripts, but now I want to do some image processing and I encountered a problem. Importing the pillow module doesn\'t seem

3条回答
  •  时光说笑
    2020-12-03 16:26

    In fact, Pillow is installed under name "PIL", so:

    import PIL as pillow
    from PIL import Image
    ...
    

    Look this:

    enter image description here

提交回复
热议问题