I installed pygame using pip install pygame and when that didn't work I found a solution online and tried pip install pygame==2.0.0.dev14.
Still the same problem: "pygame" shows up when I do pip list, and pygame folders are there in the file locations. However, when I run the code import pygame, the shell shows the error ModuleNotFoundError: No module named 'pygame'.
How can I fix this?
For python 3.9, you can use: python -m pip install pygame --pre --user. This happens because python 3.9 isn't fully adapted to pygame yet.
I have a problem running pygame 2.0 with python 3.9