Pygame package cant install

Im trying to install pygame but its always an error message. I tried “pip install pygame” but it said some files didn’t find a path. I dont know how to fix it and i dont know if its any other way to install pygame

What did the error messages say?

Hello, sorry for the late reply. The error message said:
“note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details." a little over that it said that some things didnt find a path. example: “Path for JPEG not found”

I can install it on Python 3.10, but not in Python 3.11. Interesting…

[Edit] There are pre-built wheels on PyPI up to Python 3.10, so for Python 3.11 it has to be built from source, and that’s what’s failing (WIndows 10 for me).

[Edit 2]: Check out the issue at Installation fails on Python 3.11.0 · Issue #3522 · pygame/pygame (

Thank you so much for the help :+1:t2: