-1
Traceback (most recent call last):
  File "Untitled.py", line 1, in <module>
    import pygame
  File "/Library/Python/2.7/site-packages/pygame-1.9.1release-py2.7-macosx-10.8-intel.egg/pygame/__init__.py", line 95, in <module>
    from pygame.base import *
ImportError: dlopen(/Library/Python/2.7/site-packages/pygame-1.9.1release-py2.7-macosx-10.8-intel.egg/pygame/base.so, 2): Symbol not found: _SDL_EnableUNICODE
  Referenced from: /Library/Python/2.7/site-packages/pygame-1.9.1release-py2.7-macosx-10.8-intel.egg/pygame/base.so
  Expected in: flat namespace
 in /Library/Python/2.7/site-packages/pygame-1.9.1release-py2.7-macosx-10.8-intel.egg/pygame/base.so

嗨,我试图用 python 2.7 运行 pygame。我已经安装了所有东西,但是当我导入 pygame 时,我收到了上述错误消息。有谁知道如何解决这一问题?

4

1 回答 1

0

你试过了吗?from pygame.locals import *

于 2013-07-19T16:31:56.457 回答