2011-03-10 4 views
1

초급 수준의 질문입니다. 나는 우분투에서 파이 게임을 가르치고있다. 10.10. 몇 가지 예제를 다운로드하고 파이 게임이 제대로 작동하지 않습니다. I 설치 문제가 의심됩니다. 그러나 그것을 이해하는 방법을 모르겠습니다.파이 게임 글꼴 설치 방법

이 작업을 수행하기 위해 설치해야하는 다른 것이 있습니까?

  1. 내 예 : http://cid-bb9549bdfdec74f4.skydrive.live.com/self.aspx/PyPlotter/pyplotter.py

  2. 내 오류 :

    prompt: python pyplotter.py

    pyplotter.py:27: RuntimeWarning: use font: No module named font

    (ImportError: No module named font) font = pygame.font.SysFont("arial",12)

  3. ,691 sudo는 easy_install을 파이 게임

    012 :

    line 70, in getattr raise NotImplementedError(MissingPygameModule)` NotImplementedError: font module not available (ImportError: No module named font)

Traceback (most recent call last):

File "pyplotter.py", line 27, in <module>

font = pygame.font.SysFont("arial",12)

File "/usr/local/lib/python2.6/dist-packages/pygame-1.9.1release-py2.6-linux-i686.egg/pygame/__init__.py",

내가 함께 파이 게임을 설치

답변

4

easy_install을 통해 설치하는 대신 pygame : python-pygame (우주에 있음) 용 Ubuntu 패키지를 설치하십시오.

+0

굉장 !! 그게 효과가 있었어. – codingJoe

관련 문제