我试图安装Matplot lib,但我仍然在努力克服错误.

我安装了numpy和psipy,但是当我使用easy_install时出现以下错误(与pip有类似的错误).

是的,我已经在Xcode中安装了命令行工具,以解决’gcc-4.2 not found’问题.

pymods ['pylab']

packages ['matplotlib', 'matplotlib.backends', 'matplotlib.backends.qt4_editor',

'matplotlib.projections', 'matplotlib.testing', 'matplotlib.testing.jpl_units',

'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid',

'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist', 'matplotlib.sphinxext',

'matplotlib.tri', 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil.zoneinfo']

warning: no files found matching 'KNOWN_BUGS'

warning: no files found matching 'INTERACTIVE'

warning: no files found matching 'MANIFEST'

warning: no files found matching '__init__.py'

warning: no files found matching 'examples/data/*'

warning: no files found matching 'lib/mpl_toolkits'

warning: no files found matching 'LICENSE*' under directory 'license'

gcc-4.2 not found, using clang instead

In file included from src/ft2font.cpp:3:

src/ft2font.h:16:10: fatal error: 'ft2build.h' file not found

#include

^

1 error generated.

error: Setup script exited with error: command 'clang' failed with exit status 1

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐