2013-04-08 2 views
0

MITX 6.00 pylab이 내 macbook Python 2.7.3을 실행하는 산 사자를 실행하는 중에 설치되지 않습니다. 여러 번 설치하려고했지만 작동하도록 할 수 없습니다. 아래에 오류 메시지를 게시했지만 무엇을 말하고 있는지 확실하지 않습니다. 이 오류를 설명 할 수 있다면 어떻게 해결할 수 있을까요?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

+0

Enthought는 당신을 위해 작동해야하는 OSX [here] (http://www.enthought.com/products/epdgetstart.php?platform=mac) 용 다운로드 패키지를 가지고 있습니다. – mtadd

+0

이러한 경로를 기반으로 OS X과 함께 제공되는 Python 2.7 외에도 Python 2.7이 추가로 설치되었습니다. 설치 한 설치 방법과 설치 방법을 알려 주어야 만 정확한 세부 정보를 얻을 수 있습니다. 해결책. – abarnert

답변

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

"파이썬 버전"은 무엇을 의미합니까? 유휴 버전 2.7.3 및 Enthought 32 비트를 설치했습니다. – BDGapps

1

이 Enthought의 64 비트 버전을 사용해보십시오.

관련 문제