简体   繁体   English

在OS X上安装matplotlib时出现“属性错误”

[英]'Attribute error' when installing matplotlib on OS X

I'm trying to install the latest version of matplotlib on OS X Mavericks. 我正在尝试在OS X Mavericks上安装最新版本的matplotlib I followed the both install methods on the matplotlib website: the easy_install -m matplotlib method, and git clone install from source method. 我遵循了matplotlib网站上的两种安装方法: easy_install -m matplotlib方法和git clone from source方法。

I get this error when I try to install using either method: 当我尝试使用任何一种方法安装时,都会出现此错误:

AttributeError: 'Configuration' object has no attribute 'add_define_macros'

Any idea what I should do? 知道我该怎么办吗?

确保已将numpy更新为最新版本: sudo pip install -U numpy

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM