Não foi possível instalar o matplotlib no Mac OS X

Estou tentando instalar o matplotlib para aplicações gráficas em Python no Mac OS X. Quando executo "python setup.py install", isso gera um monte de erros:http://pastebin.com/u7fL37ic.

Um snippet rápido:

src/ft2font.cpp:2170: error: ‘FT_LOAD_TARGET_MONO’ was not declared in this scope
src/ft2font.cpp:2171: error: ‘FT_LOAD_TARGET_LCD’ was not declared in this scope
src/ft2font.cpp:2172: error: ‘FT_LOAD_TARGET_LCD_V’ was not declared in this scope
src/ft2font.cpp:2175: error: ‘_ft2Library’ was not declared in this scope
src/ft2font.cpp:2175: error: ‘FT_Init_FreeType’ was not declared in this scope
src/ft2font.cpp: In destructor ‘virtual ft2font_module::~ft2font_module()’:
src/ft2font.cpp:2186: error: ‘_ft2Library’ was not declared in this scope
src/ft2font.cpp:2186: error: ‘FT_Done_FreeType’ was not declared in this scope
lipo: can't figure out the architecture type of: /var/folders/Nj/Njnlp9qSF64sMESWcaDnk++++TI/-Tmp-//cchyYmM5.out
error: command 'gcc-4.0' failed with exit status 1

Instalei o freetype usando o MacPorts e achei que isso resolveria o problema, mas sem sorte. Dá-me o mesmo erro de antes. Parece que não consegue encontrar os arquivos do tipo freet certos:

BUILDING MATPLOTLIB
        matplotlib: 1.0.0
            python: 2.6.5 (r265:79359, Mar 24 2010, 01:32:55)  [GCC
                    4.0.1 (Apple Inc. build 5493)]
          platform: darwin
REQUIRED DEPENDENCIES
             numpy: 1.5.0
         freetype2: found, but unknown version (no pkg-config)
                    * WARNING: Could not find 'freetype2' headers in any
                    * of '.', './freetype2'.

Onde devo colocar os arquivos do tipo livre para que possam ser encontrados? No momento, eles estão em / opt / local / lib

Alguma ideia?

questionAnswers(14)

yourAnswerToTheQuestion