【发布时间】:2014-07-04 17:27:12
【问题描述】:
我从pygame-1.9.1release-python.org-32bit-py2.7-macosx10.3.dmg 安装了pygame。我有 Python 2.7.6 和 OSX 10.9.2。出于某种原因,当我执行以下操作时,我得到一个ImportError:
>>> 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
我怎样才能让 pygame 工作?有没有办法为 Python 3.4 获取 pygame?我目前同时安装了 Python 2.7.6 和 Python 3.4。
【问题讨论】:
标签: python macos python-2.7 import pygame