Note: This method applies to Python version 2.x. For applications written in Python 3.x use cx_Freeze instead.
What we need:
- Windows operating system
- Python 2.x
- PyInstaller
- PyWin32
Prerequisites:
- The Windows operating system, Python, PyInstaller and PyWin32 must be download and/or installed prior to starting this tutorial. These are easy to do, if help is needed simply google around or ask in the comments section.
2. Extract PyInstaller, open up command prompt and CD into the directory.
3. Run 'Python Configure.py'.
4. Run 'Python Makespec.py --onefile <location_of_program>.py'
5. Run 'Python Build.py <program_name>\<program_name>.spec'
There should now be a directory named after <program_name> (in this case 'hello_world') containing folders named 'build', and 'dist'. The executable will be within the dist directory. Enjoy!



