0
votes

I got this error while learning how to code android games in python: ModuleNotFoundError: No module named 'pygame'

I looked up this error online and found out that I needed the 64bit version of pygame, so I went to this website: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame

I downloaded the 3.7 version of pygame in 64bit, I installed wheel with pip and when I try to pip install the 3.7 version of pygame this error comes up: "pygame-1.9.4-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform."

How can I fix this?

1
Are you using a 64-bit version of Python 3.7? When you start your Python at the command line, what information does it display? - Amos

1 Answers

0
votes

My python version is python3.6, and I installed pygame through the command:

pip install pygame

Is ok:

enter image description here

Maybe you can first update your pip, and then install it by this command.