Can't install PIL after Mac OS X 10.9

前端 未结 28 1038
长情又很酷
长情又很酷 2020-11-28 17:41

I\'ve just updated my Mac OS to 10.9 and I discovered that some (all?) of my Python modules are not here anymore, especially the Image one.

So I try to execute

28条回答
  •  北海茫月
    2020-11-28 18:15

    Works for me ( OS X Yosemite 10.10.2 - Python 2.7.9 ) :

    xcode-select --install
    sudo pip install pillow
    

    Try this to check it:

    from PIL import Image
    image = Image.open("file.jpg")
    image.show()
    

提交回复
热议问题