Isssue install pygame

so i wanna install pygame but i get this error:

ERROR: Failed to build ‘pygame’ when getting requirements to build wheel

and i asked ai but it didnt really helped

If it can’t find a wheel that matches the OS and version of Python, it tries building the wheel from source, but that requires a compiler to be available on the system. If it can’t find such a compiler, it gives that error.

As you haven’t said which OS or version of Python you have, there’s not much that we can do to help.

There are known compatability issues with 3.14; it’s not officially supported yet despite a feature request on the pygame repo. Several users (me included) have had trouble installing the library with 3.14. You can install with a 3.13 interpreter if you want, or you can use pygame-ce (a fork) instead.