How to Install Pygame on Python Via Pip (Windows 10)

How to install pygame in Windows 10 for python 3.9?

Many packages do not have pre-built wheels for Python 3.9 as it is new.

Also pygame-1.9.6-cp27-cp27m-win_amd64.whl is for Python 2.7

Your best bet is to revert to Python 3.8.6 to install pre-built wheel with pip

Unable to install pygame on Python via pip (Windows 10)

There's dev versions available as of now. Get them via

pip install pygame==2.0.0.dev6

Can't install pygame on windows 10

Apparently, I was using the wrong version of python. Once I downgraded to Python 3.7 (from Python 3.8.0a1), updated pip by using pip install --upgrade pip, I could install pygame with the command pip install pygame.

How to fix pip install pygame ?

You are using Python 3.8. Unfortunately pygame has not released any packages for python 3.8.

See here for the complete list of pygame packages and the supported python version.

If you are into pygame development i would suggest you to downgrade to python 3.7.



Related Topics



Leave a reply



Submit