用homebrew下载pygame依赖项; config.py文件无法识别它们

 我是田小勇2702932553 发布于 2023-01-15 17:58

另一个繁琐的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

我通过自制软件下载了相应的依赖项:

brew install sdl sdl_image sdl_mixer sdl_ttf smpeg portmidi

这是我的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

注意:您可以看到SDL_image丢失,我的计算机在安装过程中的Make步骤中冻结,但这是另一个问题.

如果有人能给我任何关于如何让我的config.py文件识别这些依赖关系的指导,我会非常感激.

第二个注意事项:我尝试通过以下方式安装pygame:pip,homebrew和下载软件包.

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有