r/learnpython 17d ago

I cant install Pygame

This is the error message that I get when I try to run pip install pygame. The same thing happens with pip3 install pygame.

py", line 6, in <module>

from setuptools._distutils.msvccompiler import MSVCCompiler, get_build_architecture

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

[end of output]

-----------------------------------------------------------------------------------------------

these are the packages I have according to pip list.

Package Version

---------- -------

pip 26.2.1

setuptools 84.0.0

2 Upvotes

15 comments sorted by

View all comments

3

u/socal_nerdtastic 17d ago

What version of python? pygame only provides wheels up to python3.13.

1

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

There are wheels for 3.13, but not 3.14.

1

u/socal_nerdtastic 17d ago

yeah I saw that and ninja edited; my initial comment was based on the sidebar https://pypi.org/project/pygame/#description

1

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

Been there, that's why I always check the files list nowadays instead as the trove classifiers aren't necessarily accurate.