MITX 6.00 pylab没有安装在我的macbook上运行山狮运行python 2.7.3。我已经多次尝试安装它,但我无法让它工作。我在下面发布了错误消息,但不确定它告诉我要做什么。如果你能解释这个错误以及我如何修复它会很棒。
>>> ================================ 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 :(得分:1)
你应该试试这个Enthought的64位版本。
答案 1 :(得分: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版本)。