Posts

Showing posts from March, 2019

Dice grid from a photo with Python (V) - Creation of a stand-alone executable

Image
This post is part of the Project: Create a grid of dice from a photo with Python and PIL The logic behind the program Drawing the dice Create a grid of dice from a photo Design of the GUI Creation of the stand-alone executable Introduction Up to this point, we've designed the program and created the modules and the GUI coding with Python. We could now say that the program is complete! But we can still work on one last thing: The creation of a stand-alone executable that will help us to distribute our program, as it will be able to be run on any machine even without a Python interpreter installed. For this, we'll use Pyinstaller . With pyinstaller you can create an executable file for your operative system (i.e. you can not create an EXE for Windows running pyinstaller on Ubuntu, to do that you'd need to run it on Windows).  Downloading Pyinstaller Pyinstaller can be added to your machine through PIP with the following command: pip install pyinstaller