Can't install PIL after Mac OS X 10.9

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

    I was having the following error

    building 'PIL._imagingft' extension
    _imagingft.c:62:10: fatal error: 'freetype/fterrors.h' file not found
    
    #include 
    
             ^
    
    1 error generated.
    
    error: command 'cc' failed with exit status 1
    

    The solution to this was to symlink freetype2 to freetype and this solved the problem.

提交回复
热议问题