I installed the pygame module and it works just fine when I try to run it from PyCharm or Sublime Text, but when I  try to run it from console or IDLE it says: " Error: No module named 'pygame' ".I should mention that my python 3.8 is not installed on it's default location, but rather on other partition in the custom folder. I also had problems with PATH and python when I first installed python.
If you want to use it in PyCharm you need to go to settings then Project:"name of the project" then Project Interpreter then on the "plus" sign and find and install Pygame and/or other modules. Ofcourse first you need to set the interpreter if it is not already set.
How to fix error: " No module named 'pygame' "