【发布时间】:2012-04-16 23:35:16
【问题描述】:
我安装了 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
谁能告诉我是什么问题?
附: 一开始我尝试这样安装:
pip install -e git+https://github.com/matplotlib/matplotlib#egg=matplotlib-dev
但它对我不起作用
【问题讨论】:
-
这不是一个解决方案,但如果你真的很沮丧,你可以尝试安装 Free Enthought Python Distribution,它带有 numpy、scipy 和 matplotlib。
-
我刚试过,它用 python 2.7 和 lion 编译得很好
标签: python matplotlib osx-lion