我已经从pygame网站下载的tar python setup.py install
安装了pygame 1.6.2,但是当我尝试导入pygame时,我收到了这个错误:
macHost:fooBar$ cd Downloads/pygame-1.6.2
macHost:pygame-1.6.2 fooBar$ python -c "import pygame"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/__init__.py", line 64, in <module>
from pygame.base import *
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so, 2): Symbol not found: _SDL_EnableUNICODE
Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so
Expected in: flat namespace
in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so
任何人都可以修复此错误,我需要让我的OSx mavericks运行pygame!