来自最新安装的pygame导入错误

时间:2017-03-24 19:19:26

标签: python-2.7 pygame

我刚刚安装了pygame,一旦我尝试将其导入到python 2.7文件中,这个错误就会被抛出

 Traceback (most recent call last):
  File "/Users/Ben/Desktop/Python/Game/main.py", line 2, in <module>
    import pygame as pg
  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

有谁知道为什么会这样,以及如何解决它。

感谢。

0 个答案:

没有答案