我可以导入matplotlib但是当我尝试运行以下命令:matplotlib有没有属性“pyplot”
matplotlib.pyplot(x)
我得到:
Traceback (most recent call last):
File "<pyshell#31>", line 1, in <module>
matplotlib.pyplot(x)
AttributeError: 'module' object has no attribute 'pyplot'
尝试这个最初,得到一个ImportError:dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_path.so,2):没有找到合适的图像。发现: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/m – hanachronism 2013-02-11 13:24:55
这看起来像您的安装已损坏,也许尝试干净的重新安装。 – 2013-02-11 13:38:58
解决了......显然,安装程序中的当前matplotlib版本与64位版本的Python如此下载的32位版本不兼容,并且现在完美工作。感谢您的帮助。 – hanachronism 2013-02-11 13:44:49