jordiPons
jordiPons

Reputation: 174

Problems with _imagingft at Pillow library with mac

I'm using Pillow library to create an image composed of different Strings but when I use "ImageFont.truetype("sans-serif.ttf", 16)" this line give me this exception:

raise ImportError("The _imagingft C module is not installed")
ImportError: The _imagingft C module is not installed

This exception it appears only when I execute the code in MAC, when I use Windows/Linux the execution goes well. How can I make it work in MAC?

Upvotes: 1

Views: 1168

Answers (1)

Shuo
Shuo

Reputation: 8937

brew install freetype
pip uninstall Pillow
pip install Pillow

Upvotes: 3

Related Questions