我安装了 pynum 和 scipy(在带有 python 2.7 的 osx Lion 上),但是当我尝试构建 matplotlib
git clone https://github.com/matplotlib/matplotlib.git
cd matplotlib
python setup.py build
python setup.py install
我有这些错误:
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSTypes.h:242: error: declaration for parameter ‘FMFontDirectoryFilter’ but no such parameter
src/_macosx.m:5912: error: expected ‘{’ at end of input
lipo: can't open input file: /var/folders/qw/pr2f7vq91b3c3ngkxrrqplm8zkv09r/T//ccAgEklo.out (No such file or directory)
error: command 'llvm-gcc-4.2' failed with exit status 1
有人可以告诉我有什么问题吗?
PS一开始我尝试这样安装:
pip install -e git+https://github.com/matplotlib/matplotlib#egg=matplotlib-dev
但这对我不起作用