Closed
Description
I've tried to install matplotlib
using pip
on Linux and it couldn't find freetype
during the build process, even though it's installed with dev packages.
freetype: no [The C/C++ header for freetype2 (ft2build.h)
could not be found. You may need to install the
development package.]
But:
$ ls -l /usr/include/freetype2/ft2build.h
-rw-r--r-- 1 root root 2383 Mar 13 17:29 /usr/include/freetype2/ft2build.h
And:
$ freetype-config --cflags
-I/usr/include/freetype2
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
tacaswell commentedon May 1, 2014
Can you provide any more details (distribution, version etc)?
kravietz commentedon May 1, 2014
Linux: Ubuntu 14.04 LTS
Libraries:
libfreetype6:amd64 2.5.2-1ubuntu2
libfreetype6-dev 2.5.2-1ubuntu2
Matplotlib matplotlib==1.3.1 (from pip)
I've checked the
setupext.py
and it looks that for freetype it only checks for theft2build.h
in /usr/include and not in/usr/include/freetype2
even though it's added to list of checked directories for FreeType.tacaswell commentedon May 1, 2014
I can not reproduce this in a virtual environment on 14.04.
kmike commentedon May 2, 2014
It looks similar to #2623. Even if it is not the same issue, are there plans for 1.3.2? :)
espdev commentedon May 7, 2014
I have the same problem. I try to install matplotlib in a virtual environment on ubuntu server 14.04. freetype-devel has been installed (package
libfreetype6-dev
):But matplotlib does not find it.
tacaswell commentedon May 7, 2014
@espdev What version of mpl?
espdev commentedon May 7, 2014
@tacaswell Version 1.3.1 from PyPI.
razius commentedon May 16, 2014
A temporary fix would be to create a symlink before installing matplotlib using pip.
steko commentedon May 24, 2014
I found the same issue on Debian unstable with Matplotlib 1.3.1 (both from PyPI and the tag release on github - although I think they're the same).
The fix by @razius at https://github.com/razius/matplotlib/commit/66ee42d194bef1d045918c54cc81a9cb186bd440 works for me and I managed to install matplotlib from source after applying the same patch to
setupext.py
benesch commentedon May 28, 2014
@kmike agreed, this looks like it's fixed by #2623.
@steko @kravietz @espdev does installing from the 1.3.x branch work?
If so, @tacaswell I renew my request for a 1.3.2.
benesch commentedon May 28, 2014
Never mind; upon further investigation, this is unrelated to #2623.
This bug only occurs if pkg-config is not installed; a simple
will shore up the include paths for now.
tacaswell commentedon May 29, 2014
Closing this as #3067 is merged into master.
@benesch The issue with 1.3.2 is devs having enough time to produce one. As you can see we are swamped trying to get 1.4.0 out.
60 remaining items