Discuss / Python / ImportError: The _imagingft C module is not installed

ImportError: The _imagingft C module is not installed

Topic source

sunshinebuel

#1 Created at ... [Delete] [Delete and Lock User]

我在ubuntu下运行那个验证码的程序老是报错,这是什么原因呢?

在此插入代码

jiangzhifei@jiangzhifei-Latitude-D505:~$ python3 image.py Traceback (most recent call last): File "image.py", line 22, in <module> font = ImageFont.truetype('Arial.ttf',36) File "/usr/local/lib/python3.4/dist-packages/PIL/ImageFont.py", line 239, in truetype return FreeTypeFont(font, size, index, encoding) File "/usr/local/lib/python3.4/dist-packages/PIL/ImageFont.py", line 128, in init self.font = core.getfont(font, size, index, encoding) File "/usr/local/lib/python3.4/dist-packages/PIL/ImageFont.py", line 37, in getattr raise ImportError("The _imagingft C module is not installed") ImportError: The _imagingft C module is not installed


  • 1

Reply