我可以導入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