Python: the _Imagingft C Module Is Not Installed

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



Leave a reply



Submit