11

I'm trying to install Pygame on my Mac OS 10.6.8 with Python3. I'm doing my best to follow the instructions here: http://florian-berger.de/en/articles/installing-pygame-for-python-3-on-os-x

And all seems well until this step:

brew install sdl sdl_image sdl_mixer sdl_ttf smpeg portmidi

Then it fails with "No available formula for smpeg". I get the same error if I try:

brew install smpeg

I've looked in /usr/local/Library/Formula and indeed, it is not there.

What's the smart way to move forward? * Find, install and fix the old formula? * Use an alternate way of installing smpeg? * Having come this far with Homebrew, is there a smarter way to install Pygame?

I'd appreciate guidance on an approach to take and a link with help on how to get it down that that approach. I've kind of hit the limits of my sys admin skills.

Thanks!

NOTE: The instructions I've linked to (using straight up pip with no special path in front of it), plus the answer selected below and my comment, resulted in Pygame working in Python 2.7. I'm overjoyed. Sometime later I'll figure out how to make this work in Python3, but for now this is a pretty solid win.

4

2 回答 2

12

smpeg已移至 homebrew-headonly。你可以像这样安装它:

brew tap homebrew/headonly
brew install --HEAD smpeg
于 2013-10-28T16:01:59.140 回答
3

2016 年 1 月更新

使用 Homebrew 0.9.5(git 修订版 422e;最后一次提交 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

于 2016-01-10T19:13:42.853 回答