无法在Anaconda中安装的pygame中获取字体信息

时间:2015-10-07 13:42:54

标签: fonts pygame anaconda

我已经按照此链接的最后一个答案解释的方法在Mac OS 10.9上的anaconda上安装了pygame http://92.42.51.245.cancer.iwanslphotography.com/nph-p.cgi/20/http/stackoverflow.com/questions/29137369/installing-pygame-module-in-anaconda-mac=3frq=3d1

导入pygame后,当我输入

pygame.font.get_fonts()

我收到了以下错误,这有什么问题,如何解决?

/Users/qiangshen/anaconda/lib/python2.7/site-packages/spyderlib/widgets/externalshell/start_ipython_kernel.py:1: RuntimeWarning: use font: dlopen(/Users/qiangshen/anaconda/lib/python2.7/site-packages/pygame/font.so, 2): Library not loaded: /usr/local/lib/libSDL_ttf-2.0.0.dylib Referenced from: /Users/qiangshen/anaconda/lib/python2.7/site-packages/pygame/font.so Reason: image not found (ImportError: dlopen(/Users/qiangshen/anaconda/lib/python2.7/site-packages/pygame/font.so, 2): Library not loaded: /usr/local/lib/libSDL_ttf-2.0.0.dylib Referenced from: /Users/qiangshen/anaconda/lib/python2.7/site-packages/pygame/font.so Reason: image not found) # -- coding: utf-8 -- Traceback (most recent call last):

File "", line 1, in pygame.font.get_fonts()

File "/Users/qiangshen/anaconda/lib/python2.7/site-packages/pygame/init.py", line 102, in getattr raise NotImplementedError(MissingPygameModule)

NotImplementedError: font module not available (ImportError: dlopen(/Users/qiangshen/anaconda/lib/python2.7/site-packages/pygame/font.so, 2): Library not loaded: /usr/local/lib/libSDL_ttf-2.0.0.dylib Referenced from: /Users/qiangshen/anaconda/lib/python2.7/site-packages/pygame/font.so Reason: image not found)

0 个答案:

没有答案