Can't install PIL after Mac OS X 10.9

前端 未结 28 1026
长情又很酷
长情又很酷 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:38

    Execute the bellow command lines. Works like a charm on Mac OS 10.9.5

    easy_install pip

    sudo pip install setuptools --no-use-wheel --upgrade

    sudo pip install Pillow

    Best, Theo

    0 讨论(0)
  • 2020-11-28 18:39
    1. ln -s /opt/X11/include/X11 /usr/local/include/X11
    2. pip install pil without sudo
    0 讨论(0)
  • 2020-11-28 18:40

    Installing PIL (Imaging.1.1.7) on Mac OSC 10.10 Yosemite. I tried numerous fixes recommended here but ran into trouble with each one. I finally solved this problem by editing the setup.py file such that:

    TCL_ROOT = "/opt/X11/include"

    which passes the appropriate include path for X11 in the compilation of _imagingtk.c, which was causing the problem for me. Worked immediately after change.

    0 讨论(0)
  • 2020-11-28 18:42

    I didn't want to install XCode (I don't use it) and I'm loath to fiddle with Application directory. I've cribbed from the many answers in this post and the following two steps work for me with 10.9.5:

    sudo easy_install pip
    sudo pip install pillow
    

    It did appear to me strange that I had to use easy_install to install pip. But pip didn't want to work for me before that (re-)install.

    0 讨论(0)
提交回复
热议问题