1)Python 3x installed on your system 2)Module “pygame” should be installed on your OS.
Go to https://www.python.org/downloads/ for download
Go to http://www.pygame.org/download.shtml
Using Terminal:- Use command “sudo pip install pygame”.
If pip command not recognized:- Use command “sudo apt-get install python-pip”.
Step 1: Intall pyinstaller: run 'pip install pyinstaller' Step 2: Create executable file using pyinstaller: run 'pyinstaller filename.py'
For more on pyinstaller visit here