Cai*_*ain 5 python macos homebrew pygame python-2.7
另一个繁琐的pygame安装(在osx上)问题,但我搜索了很多,并且无法找到这个特定问题的答案.当我运行config.py时,这是我的输出:
Hunting dependencies...
Framework SDL not found
Framework SDL_ttf not found
Framework SDL_image not found
Framework SDL_mixer not found
Framework smpeg not found
PNG : found
JPEG : found
SCRAP : not found
PORTMIDI: not found
Framework CoreMidi found
Run Code Online (Sandbox Code Playgroud)
我通过自制软件下载了相应的依赖项:
brew install sdl sdl_image sdl_mixer sdl_ttf smpeg portmidi
Run Code Online (Sandbox Code Playgroud)
这是我的brewlist:
atk gobject-introspection pixman
autoconf gtk+ pkg-config
automake harfbuzz portmidi
cairo icu4c python
cmake jpeg readline
fontconfig libffi sdl
freetype libpng sdl_mixer
gdbm libtiff sdl_ttf
gdk-pixbuf libtool smpeg
gettext mercurial sqlite
git openssl
glib pango
Run Code Online (Sandbox Code Playgroud)
注意:您可以看到SDL_image丢失,我的计算机在安装过程中的Make步骤中冻结,但这是另一个问题.
如果有人能给我任何关于如何让我的config.py文件识别这些依赖关系的指导,我会非常感激.
第二个注意事项:我尝试通过以下方式安装pygame:pip,homebrew和下载软件包.