![Pygame kann auf iMac 12.6.3 Monterey nicht installiert werden](https://rvso.com/image/1684447/Pygame%20kann%20auf%20iMac%2012.6.3%20Monterey%20nicht%20installiert%20werden.png)
Ich bin gefolgthttps://brysonpayne.com/2015/01/10/setting-up-pygame-on-a-mac/
Ich habe auch versucht, es über das Python-Terminal und das Mac-Terminal zu installieren. Ich erhalte immer wieder die folgende Fehlermeldung:
Using cached pygame-2.1.2.tar.gz (10.1 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info wurde nicht erfolgreich ausgeführt. │ Exitcode: 1 ╰─> [34 Zeilen Ausgabe]
WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using Darwin configuration...
/bin/sh: pkg-config: command not found
/bin/sh: pkg-config: command not found
/bin/sh: pkg-config: command not found
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/82/gx_9dw5926nd_8h271w_4fp00000gn/T/pip-install-r0d2u6u4/pygame_7a53717a6a7b41a5a1e4d3f23d0f3159/setup.py", line 359, in <module>
buildconfig.config.main(AUTO_CONFIG)
File "/private/var/folders/82/gx_9dw5926nd_8h271w_4fp00000gn/T/pip-install-r0d2u6u4/pygame_7a53717a6a7b41a5a1e4d3f23d0f3159/buildconfig/config.py", line 225, in main
deps = CFG.main(**kwds)
^^^^^^^^^^^^^^^^
File "/private/var/folders/82/gx_9dw5926nd_8h271w_4fp00000gn/T/pip-install-r0d2u6u4/pygame_7a53717a6a7b41a5a1e4d3f23d0f3159/buildconfig/config_darwin.py", line 143, in main
find_freetype(),
^^^^^^^^^^^^^^^
File "/private/var/folders/82/gx_9dw5926nd_8h271w_4fp00000gn/T/pip-install-r0d2u6u4/pygame_7a53717a6a7b41a5a1e4d3f23d0f3159/buildconfig/config_darwin.py", line 110, in find_freetype
pkg_config = DependencyProg(
^^^^^^^^^^^^^^^
File "/private/var/folders/82/gx_9dw5926nd_8h271w_4fp00000gn/T/pip-install-r0d2u6u4/pygame_7a53717a6a7b41a5a1e4d3f23d0f3159/buildconfig/config_unix.py", line 39, in __init__
self.ver = config[0].strip()
~~~~~~^^^
IndexError: list index out of range
---
For help with compilation see:
https://www.pygame.org/wiki/MacCompile
To contribute to pygame development see:
https://www.pygame.org/contribute.html
---
[end of output]
Hinweis: Dieser Fehler stammt von einem Unterprozess und ist wahrscheinlich kein Problem mit pip. Fehler: Metadatengenerierung fehlgeschlagen
× Beim Generieren der Paketmetadaten ist ein Fehler aufgetreten. ╰─> Die Ausgabe finden Sie oben.
Hinweis: Dies ist ein Problem mit dem oben genannten Paket, nicht mit Pip. Hinweis: Einzelheiten siehe oben.
Ich bin mit meinem Latein am Ende. Was muss ich tun, damit Pygame geladen wird? Vielen Dank im Voraus für Ihre Hilfe