擅长:python、mysql、java
<p>同样的错误,安装在我的一台Lion机器上,而不是另一台。找到一个丢失的pkg配置</p>
<pre><code>$ brew install pkg-config
$ pip install -U 'http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/matplotlib-1.1.0.tar.gz/download'
</code></pre>
<p>(另见<a href="https://jholewinski.org/blog/installing-matplotlib-on-os-x-10-7-with-homebrew/" rel="noreferrer">https://jholewinski.org/blog/installing-matplotlib-on-os-x-10-7-with-homebrew/</a>)</p>