我有这个问题:Nomodulenamed_imagingft我已经安装了PIL,但它仍然不起作用。我使用OSX。我正在尝试为DjangoSimpleCaptcha安装此模块. 最佳答案 在现有PIL上安装Pillow为我解决了这个问题:$sudoeasy_installPIL$sudoeasy_installPillow 关于python-没有名为_imagingft的模块,我们在StackOverflow上找到一个类似的问题: https://stackov
我尝试了很多在网上发布的解决方案,它们都不起作用。>>>import_imaging>>>_imaging.__file__'C:\\python26\\lib\\site-packages\\PIL\\_imaging.pyd'>>>所以系统可以找到_imaging但仍然不能使用truetype字体fromPILimportImage,ImageDraw,ImageFilter,ImageFontim=Image.new('RGB',(300,300),'white')draw=ImageDraw.Draw(im)font=ImageFont.truetype('arial.ttf'
我尝试了很多在网上发布的解决方案,它们都不起作用。>>>import_imaging>>>_imaging.__file__'C:\\python26\\lib\\site-packages\\PIL\\_imaging.pyd'>>>所以系统可以找到_imaging但仍然不能使用truetype字体fromPILimportImage,ImageDraw,ImageFilter,ImageFontim=Image.new('RGB',(300,300),'white')draw=ImageDraw.Draw(im)font=ImageFont.truetype('arial.ttf'
我正在尝试在我的机器上运行一个网络应用程序/网站,它在OSX10.6.2上运行,但我遇到了一些问题:Caughtanexeptionwhilerending:The_imagingftCmoduleisnotinstalled在python中执行import_imagingft给我这个:>>>import_imagingftTraceback(mostrecentcalllast):File"",line1,inImportError:dlopen(/Library/Python/2.6/site-packages/PIL/_imagingft.so,2):Symbolnotfound