PIL在mac下报没有安装_imaging的解决办法
报错信息如下:
In [1]: from PIL import Image as PILImage, ImageDraw, ImageFont
—————————————————————————
ImportError Traceback (most recent call last)
/Users/jinguoli/Projects/pbi/ in ()
/Users/jinguoli/Projects/pbi/PIL/ImageFont.py in ()
113 # truetype factory function to create font objects.
114
–> 115 class FreeTypeFont:
116 “FreeType font wrapper (requires _imagingft service)”
117
/Users/jinguoli/Projects/pbi/PIL/ImageFont.py in FreeTypeFont()
133 return self.getmask2(text, mode)[0]
134
–> 135 def getmask2(self, text, mode=””, fill=Image.core.fill):
136 size, offset = self.font.getsize(text)
137 im = fill(”L”, size, […]