我正在尝试在我的 mac 上安装 pygame。
我正在使用 python 2.7 并下载了适用于 2.7 的 pygame。
我做正常的安装。
然后当我进入 shell 并输入 import pygame
我收到此错误:
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import pygame
File "/Library/Frameworks/Python.framework/Ve… line 95, in <module>
from pygame.base import *
ImportError: dlopen(/Library/Frameworks/Python.framew… 2): no suitable image found. Did find:
/Library/Frameworks/Python.framework/… no matching architecture in universal wrapper
有人知道发生了什么吗?
顺便说一句,我正在使用 Lion
请您参考如下方法:
从 Python.org 下载官方 Mac Python。系统自带的苹果的不支持pygame。
