I have been trying to install pygame on Spyder for hours. I remember doing it on another computer, and it worked just fine, but this time nothing fixes the issue I have. Whenever I try to run a 500-line code I did back in the day, an error message appears on the first line of code (import pygame) saying
No module named 'pygame'".
I installed Anaconda3, and typed "pip install pygame". Successful download. Pygame even appears even when I type "pip list". But the program cannot be run. I don't know which prompt I am supposed to use, the default command prompt, the Anaconda prompt, or the Python prompt to type commands. Spyder version is 5.4.5, Python version is 3.8.10, Pygame version is 2.5.1. I also tried to manually copy-paste pygame into Spyder's and Python's "lib" folders. I searched for alternate commands, but none of them worked (--user, pip3).