2013-04-08 51 views
0

MITX 6.00 pylab沒有安裝在運行python 2.7.3的我的運行山獅的macbook上。我試過多次安裝它,但我無法啓動它。我在下面發佈了錯誤消息,但我不確定它告訴我要做什麼。如果你能解釋這個錯誤以及我如何解決這個問題,那就太好了。pylab沒有安裝在我的macbook上

>>> ================================ RESTART ================================ 
>>> import pylab 

Traceback (most recent call last): 
    File "<pyshell#5>", line 1, in <module> 
    import pylab 
    File "/Library/Python/2.7/site-packages/matplotlib-1.3.x-py2.7-macosx-10.8-intel.egg/pylab.py", line 1, in <module> 
    from matplotlib.pylab import * 
    File "/Library/Python/2.7/site-packages/matplotlib-1.3.x-py2.7-macosx-10.8-intel.egg/matplotlib/__init__.py", line 133, in <module> 
    from matplotlib.cbook import MatplotlibDeprecationWarning 
    File "/Library/Python/2.7/site-packages/matplotlib-1.3.x-py2.7-macosx-10.8-intel.egg/matplotlib/cbook.py", line 29, in <module> 
    import numpy as np 
    File "/Library/Python/2.7/site-packages/numpy-1.8.0.dev_bbcfcf6_20130307-py2.7-macosx-10.8-intel.egg/numpy/__init__.py", line 138, in <module> 
    import add_newdocs 
    File "/Library/Python/2.7/site-packages/numpy-1.8.0.dev_bbcfcf6_20130307-py2.7-macosx-10.8-intel.egg/numpy/add_newdocs.py", line 13, in <module> 
    from numpy.lib import add_newdoc 
    File "/Library/Python/2.7/site-packages/numpy-1.8.0.dev_bbcfcf6_20130307-py2.7-macosx-10.8-intel.egg/numpy/lib/__init__.py", line 6, in <module> 
    from type_check import * 
    File "/Library/Python/2.7/site-packages/numpy-1.8.0.dev_bbcfcf6_20130307-py2.7-macosx-10.8-intel.egg/numpy/lib/type_check.py", line 11, in <module> 
    import numpy.core.numeric as _nx 
    File "/Library/Python/2.7/site-packages/numpy-1.8.0.dev_bbcfcf6_20130307-py2.7-macosx-10.8-intel.egg/numpy/core/__init__.py", line 6, in <module> 
    import multiarray 
ImportError: dlopen(/Library/Python/2.7/site-packages/numpy-1.8.0.dev_bbcfcf6_20130307-py2.7-macosx-10.8-intel.egg/numpy/core/multiarray.so, 2): no suitable image found. Did find: 
    /Library/Python/2.7/site-packages/numpy-1.8.0.dev_bbcfcf6_20130307-py2.7-macosx-10.8-intel.egg/numpy/core/multiarray.so: mach-o, but wrong architecture 
>>> 
+0

它告訴你,你已經安裝了錯誤的架構庫。看起來你真正的問題是沒有正確安裝'numpy'。 – tacaswell 2013-04-08 20:03:51

+0

Enthought有一個適用於您的OSX [此處](http://www.enthought.com/products/epdgetstart.php?platform=mac)的可下載軟件包。 – mtadd 2013-04-08 20:06:55

+0

基於這些路徑,顯然你已經安裝了一些額外的Python 2.7,除了OS X附帶的那個。你必須告訴我們你安裝了哪一個,以及你如何安裝它,然後才能給你提供關於解。 – abarnert 2013-04-08 20:53:00

回答

0

那麼從該消息的重要位以下

ImportError: dlopen([long path to] multiarray.so, 2): no suitable image found. 
Did find: [same path to] multiarray.so: mach-o, but wrong architecture 

因此,基本上,你有沒有正確安裝呢?意思是正確的架構(x86,x64取決於您的Python版本)。

+0

你是什麼意思的「版本的Python」?閒置版本2.7.3和我安裝了Enthought 32位 – BDGapps 2013-04-08 22:28:30

1

你應該試試這個Enthought的64位版本。

相關問題