我试图安装matplotlib,但面临很多问题。我收到一个常见的错误来自两个点子安装matplotlib以及试图从源代码这是构建:在Mac OSX上安装matplotlib Mountain Lion
BUILDING MATPLOTLIB
matplotlib: 1.1.1
python: 2.7.2 (default, Jun 20 2012, 16:23:33) [GCC 4.2.1
Compatible Apple Clang 4.0
(tags/Apple/clang-418.0.60)]
platform: darwin
需要的依赖
numpy: 1.6.1
* Could not find the headers for numpy. You may
* need to install the development package.
编辑:终于解决了这个问题。我需要安装gfortran和gcc编译器。它使用酿造和一切都像魅力工作!
从源码建设应该没问题(至少从git最近的版本)。但是你需要确保numpy的头文件在链接器路径中。 – tiago