我正在尝试安装pygame,并遵循了许多教程来解决所有发生的错误,但我无法通过这些错误。
任何帮助都是非常感谢的。
brew install --HEAD smpeg 出现以下错误:
installing dependencies for smpeg: gobject-introspection, gdk-pixbuf,
==> Installing smpeg dependency: gobject-introspection
==> Building source; bottle blocked by python requirement
Error: /usr/local/opt/xz not present or broken
Please reinstall xz. Sorry :(我在试着追随这个纪念碑http://bastibe.de/2011-03-04-installing-pygame-using-homebrew.html
brew install sdl, sdl_mixer, sdl_ttf, libpng, jpeg, sdl_image, portmidi
Error: No available formula for sdl, 这个问题是Pygame - smpeg does not find Python headers
但我不确定如何brew edit smpeg,在最后的两个结尾处添加了include.install目录“*.h”。
安装这个棘手的pygame的最快方法是什么?
发布于 2014-07-21 07:06:48
brew tap homebrew/python
brew install pygame这应该是您需要做的全部工作。
https://stackoverflow.com/questions/24723363
复制相似问题