Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install the matplotlib 1.5.3 or 2.0.0rc2 on Mac OS Sierra, Python 3.6.0 #7756

Closed
jli05 opened this issue Jan 6, 2017 · 4 comments
Closed

Comments

@jli05
Copy link

jli05 commented Jan 6, 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

sudo -H pip3 install matplotlib

or

sudo -H pip3 install --global-option="build_ext" --global-option="-I/opt/X11/include/freetype2/" --global-option="-L/opt/X11/lib" matplotlib

Actual outcome

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

Matplotlib version

matplotlib 1.5.3 or 2.0.0rc2, macOS Sierra, XQuartz 2.7.11, Xcode 8.2.1, Python 3.6.0

@vindarmagnus
Copy link

vindarmagnus commented Jan 7, 2017

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

@tacaswell tacaswell added this to the 2.0.1 (next bug fix release) milestone Jan 7, 2017
@tacaswell
Copy link
Member

Do you have pkgconfig installed?

Does it work if you set expert MPLLOCALFREETYPE=1?

@jli05
Copy link
Author

jli05 commented Jan 7, 2017

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 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
@jli05
Copy link
Author

jli05 commented Feb 5, 2017

The wheel build of Matplotlib 2.0.0 works with Python 3.6.0 on macOS Sierra.

@jli05 jli05 closed this as completed Feb 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants