HOMEBREW - 在Mac OS X Snow Leopard上安装Pygame

时间:2014-11-30 16:26:35

标签: pygame homebrew osx-snow-leopard

所以,我试图通过Homebrew在我的mac 10.6上安装pygame。我收到了多个错误 这就是我安装Homebrew的方式:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

在终端中成功运行。当我尝试运行“brew”命令来安装mercurial时 brew install mercurial我收到此错误-bash: brew: command not found 我曾尝试多次重新安装Homebrew,但它没有用。当我检查/ usr / local / bin /目录时,名称中没有带“brew”的文件。我还尝试运行命令pip3 install https://bitbucket.org/pygame/pygame,我收到此错误:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

1 个答案:

答案 0 :(得分:0)

这里有一整套说明: https://bitbucket.org/pygame/pygame/issues/82/homebrew-on-leopard-fails-to-install#comment-627494

brew install mercurial

brew install sdl sdl_image sdl_mixer sdl_ttf smpeg portmidi 
pip install hg+http://bitbucket.org/pygame/pygame