我已經在我的mac上安裝了pygames,使用pygame.org網站上找到的以下軟件包中的安裝程序:pygame-1.9.1release-python.org-32bit-py2.7-macosx10.3。 DMG。無法導入pygame
我已經在python.org上安裝了Python 2.7.2 Mac OS X 64位/ 32位x86-64/i386安裝程序,並運行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
您運行的是哪個版本的Mac OS X? – timc 2012-02-01 00:47:43
Mac OS X版本10.7.2 – bigblind 2012-02-01 16:46:51