擅长:python、mysql、java
<p><strike>修好了。。。差不多吧。</strike></p>
<p>修好了。在</p>
<p>我用<code>brew uninstall matplotlib</code>卸载,然后用<code>pip install matplotlib</code>安装。<code>pip</code>版本现在可以工作了。<strike>虽然我认为我的代码有问题,因为我没有得到图像输出。</strike></p>
<p>我卸载了<code>python</code>的所有安装,然后安装了<code>ipython</code>,运行良好。另外,我忘了在我的<code>imshow();</code>命令后添加<code>plt.show();</code>。。。:-( .... 但至少有人在我之前犯了这个错误。。。在</p>
<p>有关任何<code>matplotlib</code><code>imshow</code>问题,请参阅本页:</p>
<p><a href="https://stackoverflow.com/questions/7534453/matplotlib-does-not-show-my-drawings-although-i-call-pyplot-show">matplotlib does not show my drawings although I call pyplot.show()</a></p>