Homebrew:没有smpeg的公式

时间:2013-10-27 04:06:07

标签: python-2.7 python-3.x pygame homebrew

我正在尝试使用Python3在我的Mac OS 10.6.8上安装Pygame。我正在尽力遵循此处的说明:http://florian-berger.de/en/articles/installing-pygame-for-python-3-on-os-x

直到这一步,一切似乎都很好:

brew install sdl sdl_image sdl_mixer sdl_ttf smpeg portmidi

然后它失败了“没有可用的smpeg公式”。如果我尝试,我会得到同样的错误:

brew install smpeg

我查看了/ usr / local / Library / Formula,实际上,它不存在。

前进的聪明方法是什么? *查找,安装和修复旧配方? *使用另一种安装smpeg的方法? *与Homebrew相比,有没有更智能的方法来安装Pygame?

我很欣赏有关采取方法的指导,并希望获得有关如何解决这种方法的帮助。我有点达到了我的系统管理技能的极限。

谢谢!

注意:我链接到的指令(使用直线点,前面没有特殊路径),加上下面选择的答案和我的评论,导致Pygame在Python 2.7中工作。我很高兴。稍后我会弄清楚如何在Python3中完成这项工作,但是现在这是一个非常可靠的胜利。

2 个答案:

答案 0 :(得分:12)

smpeg已被移至homebrew-headonly。您可以这样安装:

brew tap homebrew/headonly
brew install --HEAD smpeg

答案 1 :(得分:3)

2016年1月更新

使用Homebrew 0.9.5(git revision 422e; last commit 2016-01-10)在El Capitan(10.11.2)上安装导致以下日志

$ brew install smpeg
==> Downloading https://homebrew.bintray.com/bottles/smpeg-0.4.5.el_capitan.bott
######################################################################## 100.0%
==> Pouring smpeg-0.4.5.el_capitan.bottle.tar.gz   /usr/local/Cellar/smpeg/0.4.5: 22 files, 636.1K

导致成功安装smpeg