Python: The _imagingft C module is not installed
Your installed PIL was compiled without libfreetype.
You can get precompiled installer of PIL (compiled with libfreetype) here (and many other precompiled Python C Modules):
http://www.lfd.uci.edu/~gohlke/pythonlibs/
The _imaging C module is not installed (on windows)
Yes, this could definitely be (and most likely is) caused by an x64 issue. If you're running Python x64, any module that includes a native DLL needs to be installed in a version compiled for x64 too.
Edit: I cannot find an actual precompiled version for x64 at the PIL site, but here is a starting point if you're interested in compiling it yourself.
Python 3 The _imagingft C module is not installed
the original pil
package is not yet compatible with python3,
So instead use pillow
a fork of pil
Warning PIL and Pillow currently cannot co-exist in the same environment. If you want to use Pillow, please remove PIL first.
first uninstall and remove your old PIL directory (if it exists)
sudo pip uninstall pil
sudo rm -rf /usr/local/lib/python3.2/dist-packages/PIL
install dependencies
sudo apt-get install libfreetype6-dev
now install pillow
pip install Pillow
make sure u have installed pillow in your /usr/local/lib/python[VERSION]/dist-packages/
if it is successfully installed you should see 2 directories like
Pillow-2.4.0-py3.2.egg-info
and PIL
see here for more details and other platforms
Problems with _imagingft at Pillow library with mac
brew install freetype
pip uninstall Pillow
pip install Pillow
ImportError: The _imagingft C module is not installed in alpine-docker
We need to install compiler (g++
), TrueType font rendering library (freetype-dev
) and accelerated baseline JPEG compression and decompression library (jpeg-dev
) to compile pillow
on Alpine platform.
The part of Dockerfile
is:
FROM python:3.7-rc-alpine3.7
RUN apk add --no-cache g++ freetype-dev jpeg-dev
RUN pip install pillow
Related Topics
Python Global Exception Handling
Cast Base Class to Derived Class Python (Or More Pythonic Way of Extending Classes)
How to Make a 4D Plot with Matplotlib Using Arbitrary Data
Websocket VS Rest API for Real Time Data
Matplotlib Log Scale Tick Label Number Formatting
Running a Process in Pythonw with Popen Without a Console
Force Numpy Ndarray to Take Ownership of Its Memory in Cython
Board-Drawing Code to Move an Oval
Pytz Localize VS Datetime Replace
How to Display a Pandas Data Frame with Pyqt5/Pyside2
How to Create an Encrypted Zip File
How to Load Files Using Pickle and Multiple Modules
Pycharm Current Working Directory
Easy Way of Finding Decimal Places
Adding a Legend to Pyplot in Matplotlib in the Simplest Manner Possible