Installer wxPython sur Mac
Bonjour,
J'ai installé Python 2.7.1 sur mon MacBook Pro (OSX 10.6).
Puis j'ai installé wxPython via MacPorts : sudo port install py27-wxpython
Mais lorsque je tente d'importer wxPython : >>> import wx
j'ai cette erreur qui s'affiche :
Code:
1 2 3 4 5 6 7 8 9
| Traceback (most recent call last):
File "pytest.py", line 4, in <module>
import wx
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/__init__.py", line 45, in <module>
from wx._core import *
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core.py", line 4, in <module>
import _core_
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so, 2): no suitable image found. Did find:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so: mach-o, but wrong architecture |
Sauriez-vous me dire ce qui ne va pas, et comment y remédier ?
Merci d'avance.