我是python的新手,我在安装pygame时遇到问题?

时间:2012-02-10 04:03:37

标签: pygame

我刚刚在32位macintosh pro上下载了pygame 32位。我打开IDLE并在IDLE shell中输入import pygame,然后单击enter。通常我听说它应该返回,但它给了我错误信息。

Traceback (most recent call last):
  File "<pyshell#0>", 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

请帮帮我!!!

1 个答案:

答案 0 :(得分:1)

我不知道这是否是32/64位安装的问题,但您可以轻松检查您正在运行的版本:

import struct; print( 8 * struct.calcsize("P"))