我安装了pynum和scipy(在OSX Lion上使用Python 2.7),但是当我尝试构建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
请问有人能告诉我问题出在哪里吗?
附注: 起初我尝试以这种方式安装:
pip install -e git+https://github.com/matplotlib/matplotlib#egg=matplotlib-dev
但是对我来说并没有起作用。