我在我的mac上安装了pygames,使用pygame.org网站上的以下软件包中的安装程序:pygame-1.9.1release-python.org-32bit-py2.7-macosx10.3.dmg.
我已经在python.org上安装了Python 2.7.2 Mac OS X 64位/ 32位x86-64/i386安装程序的python,然后运行easy_install pyobjc以便我现在安装了pyobjc 2.2.
但是当我尝试在repl中导入pygame时,我得到了这个:
>>> import pygame
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
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
Run Code Online (Sandbox Code Playgroud)