![No se puede instalar pygame en iMac 12.6.3 Monterey](https://rvso.com/image/1684447/No%20se%20puede%20instalar%20pygame%20en%20iMac%2012.6.3%20Monterey.png)
he seguidohttps://brysonpayne.com/2015/01/10/setting-up-pygame-on-a-mac/
También intenté instalarlo a través de la terminal Python y la terminal Mac. Sigo recibiendo el siguiente mensaje de error:
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 no se ejecutó correctamente. │ código de salida: 1 ╰─> [34 líneas de salida]
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]
nota: Este error se origina en un subproceso y probablemente no sea un problema con pip. error: error en la generación de metadatos
× Se produjo un error al generar metadatos del paquete. ╰─> Consulte arriba para ver el resultado.
nota: Este es un problema con el paquete mencionado anteriormente, no con pip. Sugerencia: consulte más arriba para obtener más detalles.
Estoy al límite de mi ingenio. ¿Qué debo hacer para que se cargue pygame? Gracias de antemano por su ayuda