Building Matplotlib with OSX backend

asked 2017-11-10 00:04:24 +0100

updated 2017-11-22 13:02:36 +0100

FrédéricC gravatar image

Hi, I have installed sagemath 8.0 on OSX without any issue and now I am trying to upgrade matplotlib so I can have interactive plots. Simply doing

sage -pip install -U matplotlib

results in the following error

building 'matplotlib.backends._macosx' extension
gcc -fno-strict-aliasing -I/Applications/SageMath/local/var/tmp/sage/build/python2-2.7.13.p1/include -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused -I/usr/local/include -I/usr/include -I/usr/X11/include -I/opt/X11/include -I. -I/Applications/SageMath/local/include/python2.7 -c src/_macosx.m -o build/temp.macosx-10.9-x86_64-2.7/src/_macosx.o
gcc: error: src/_macosx.m: Objective-C compiler not installed on this system
error: command 'gcc' failed with exit status 1

Setting the environment variable CC=clang doesn't help. Is there a way to use clang to compile matplotlib?

Thanks

edit retag flag offensive close merge delete

Comments

eric_g gravatar imageeric_g ( 2017-11-10 13:58:25 +0100 )edit