Solution for : No Module Named pygame

The easy solution for this error is to install the missing module pygame :

pip install pygame

If pip install is not working try using conda:

conda install pygame

No module named pygame : Can you play games without installing them? No. Likewise, to use the pygame package in your python program, you must first install it. pygame is not included in your built-in modules for python. Therefore, you have to tell the package management system (pip) to install it!

Other installation errors :

ImportError: No module named pygame