这是我第一次设置matplotlib
我在OS X Lion 10.7上(构建11A511s,因此没有对OS X Lion的初始版本进行更新)。
我正在使用virtualenv和pip进行安装
我知道与libpng 1.5不兼容,所以我不只是运行“pip install matplotlib”而是......
我尝试从virtualenv中运行它:
pip install -e git+https://github.com/matplotlib/matplotlib#egg=matplotlib-dev
看起来它开始安装,但后来我收到了这个错误:
/Users/myusername/.virtualenvs/nltk/lib/python2.7/site-packages/numpy/core/include/numpy/
__multiarray_api.h:1532: warning: ‘int _import_array()’ defined but not used
lipo: can't open input file: /var/folders/wy/s1jr354d4xx7dk0lpdpbpsbc0000gn/T/
/ccfNUhyq.out (No such file or directory)
error: command 'llvm-gcc-4.2' failed with exit status 1
----------------------------------------
Command /Users/sameerfx/.virtualenvs/nltk/bin/python -c "import setuptools; __file__=
'/Users/sameerfx/.virtualenvs/nltk/src/matplotlib/setup.py'; exec(compile(open(__file__
).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps failed with error code 1
Storing complete log in /Users/sameerfx/.pip/pip.log