J'ai installé pygame de pygame-1.9.1release-python.org-32bit-py2.7-macosx10.3.dmg
. J'ai Python 2.7.6 et OSX 10.9.2. Pour une raison quelconque, quand je fais ce qui suit, je reçois un ImportError
:Python pygame mac import
>>> import pygame
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import pygame
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/__init__.py", line 95, in <module>
from pygame.base import *
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so, 2): no suitable image found. Did find:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so: no matching architecture in universal wrapper
Comment puis-je obtenir pygame à travailler? Et y a-t-il un moyen d'obtenir pygame pour Python 3.4? J'ai actuellement Python 2.7.6 et Python 3.4 installés.