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?