You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The macOS Sierra is updated to the latest version. We install matplotlib with Python 3.6.0. We have the latest XQuartz installed as well. matplotlib complains he cannot find header files for freetype2 although it's installed by XQuartz.
freetype: no [The C/C++ header for freetype2 (ft2build.h)
could not be found. You may need to install the
development package.]
...
* The following required packages can not be built:
* freetype
Happened to me too, using homebrew. Tried many things but what got it working in the end was:
ln -s /usr/local/include/freetype2/ft2build.h /usr/local/include/ft2build.h
I didn't have pkgconfig installed. I installed it, also tried to invoke pip3 with or without MPLLOCALFREETYPE=1, and still get the same error.
jli05
changed the title
Cannot install the matplotlib on Mac OS Sierra, Python 3.6.0
Cannot install the matplotlib 1.5.3 or 2.0.0rc2 on Mac OS Sierra, Python 3.6.0
Jan 9, 2017
Bug report
Bug summary
The macOS Sierra is updated to the latest version. We install matplotlib with Python 3.6.0. We have the latest XQuartz installed as well. matplotlib complains he cannot find header files for freetype2 although it's installed by XQuartz.
Code for reproduction
Either
or
Actual outcome
Matplotlib version
matplotlib 1.5.3 or 2.0.0rc2, macOS Sierra, XQuartz 2.7.11, Xcode 8.2.1, Python 3.6.0
The text was updated successfully, but these errors were encountered: