好的,所以重新安裝我的操作系統後,我的python安裝死了。 Python,numpy和ipython可以正常工作,但matplotlib已經徹底消失了。經過反覆嘗試從macports,egg等安裝它後,我設法通過他們提供的.dmg來完成它。現在顯然,matplotlib不支持64位體系結構(?????)。無論如何,雖然也許這裏有人經歷了類似的問題。所以,我的規格:MAC OS X 10.7.2,python 2.7開箱即用,numpy 1.5.1和matplotlib 1.1.0。這裏的輸出:在OS X上的matplotlib安裝不支持64位體系結構
File "", line 1, in File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site->packages/matplotlib/pyplot.py", line 23, in from matplotlib.figure import Figure, figaspect File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site->packages/matplotlib/figure.py", line 16, in import artist File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site->packages/matplotlib/artist.py", line 6, in from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site->packages/matplotlib/transforms.py", line 34, in from matplotlib._path import affine_transform ImportError: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site->packages/matplotlib/_path.so: no appropriate 64-bit architecture (see "man python" for >running in 32-bit mode)
感謝您的任何幫助,請讓我知道如果我發佈這絕對錯誤的地方!
Alex。
感謝您的選擇。我實際上使用了一個二進制備份,它工作得很好。我會檢查分配。我相信,今後我會盡力整個蟒蛇shbang總是安裝到我的主目錄作爲用戶,不能進系統庫作爲超級用戶。這是「正確」的事情,我認爲。 –
順便說一句,我只是直接通過使用os.system調用,這是非常愚蠢的,調用的ffmpeg去了,但它的方式我管理! –