Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

If you use Pygame module in Python (In Windows)

1.Install the PyInstaller Module

Type this to the command line of your project:

pip install pyinstaller

or

pip3 install pyinstaller

In theory, It should look like this:

C:/Python34/*Your Project Name*> pip install pyinstaller

or

C:/Python34/*Your Project Name*> pip3 install pyinstaller

2.Pack your pygame project

When It installed, Then Type this in the Project directory:

pyinstaller project_name_here.py --onefile --noconsole

(--onefile and --noconsole are optional)

In Theory, It should look like this:

C:/Python34/*Your Project Name*> pyinstaller project_name_here.py --onefile --noconsole

Attributes:

--onefile

For keep the executable in one file.

--noconsole

Make the console dissapear.