安装smpeg时出错

时间:2015-04-20 15:34:49

标签: python package pygame

我试图安装pygame,它依赖于' smpeg'

运行此行时出现以下错误:

site-packages user$ brew install sdl sdl_image sdl_mixer sdl_ttf smpeg portmidi
Error: smpeg is a head-only formula
Install with `brew install --HEAD smpeg`

所以我试试:

user$ brew install --HEAD smpeg
Warning: smpeg-HEAD already installed

所以不确定如何解决错误。

当我尝试运行python游戏时,出现无法处理.png文件的错误:

  File "SwingyMonkey.py", line 262, in <module>
    game = SwingyMonkey()
  File "SwingyMonkey.py", line 63, in __init__
    self.background_img = pg.image.load('res/jungle-pixel.png').convert()
pygame.error: File is not a Windows BMP file

我认为这与之前的错误有关。

0 个答案:

没有答案