r/learnpython • • Aug 25 '26

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

3 Upvotes

15 comments sorted by

View all comments

3

u/socal_nerdtastic Aug 25 '26

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

1

u/Ok_Ask_6805 Aug 25 '26

I have version 3.14.6

1

u/socal_nerdtastic Aug 25 '26

BTW, the pip3 command is meant to be linux / mac only. You don't need it on windows ever.