Я также проверил другие темы, но ничего не нашел. Мне нужна ваша помощь
Код: Выделить всё
error: subprocess-exited-with-error
× Building wheel for pygame (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
src_c/_sdl2/sdl2.c:1237:10: fatal error: 'SDL.h' file not found
1237 | #include "SDL.h"
| ^~~~~~~
1 error generated.
Skipping Cython compilation
---
For help with compilation see:
https://www.pygame.org/wiki/MacCompile
To contribute to pygame development see:
https://www.pygame.org/contribute.html
---
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pygame
[notice] A new release of pip is available: 24.3.1 -> 26.0.1
[notice] To update, run: /Users/alperen/PycharmProjects/Asteroid Shooter/.venv/bin/python -m pip install --upgrade pip
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pygame)
1: Exit code is not zero
Как видите, Pygame установлен на моем компьютере.
изображения pygame
Подробнее здесь: https://stackoverflow.com/questions/798 ... ing-pygame
Мобильная версия