我想安装matplotlib,但是遇到了很多问题。无论是使用pip安装matplotlib还是尝试从源代码构建都会遇到一个常见的错误:
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编译器。使用brew安装即可,一切都像魔法般顺利!