r/learnpython • • 9d ago

Issues related to setuptools while installing Pygame

I'm trying to install pygame on Python 3.15.2. I keep getting the following message:

ModuleNotFoundError: No module named 'setuptools._distutils.msvccompiler'

I've installed and updated buildconfig and setuptools. What am I missing?

2 Upvotes

7 comments sorted by

View all comments

1

u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 9d ago

To answer your question, pygame does not currently offer wheels for Python 3.15, so Python attempts to build it from source, but you don't have MSVC installed so it fails to compile.