How to create an installer for your Python program

公冶俊达
2023-12-01

http://cs.simpson.edu/?q=make_an_installer_for_your_python_program


How to create an installer for your Python program

Here are the steps necessary to create an installable application out of your Python program.

Create an icon for your program (optional)

  1. Download and install Imagicon [http://www.deviouscodeworks.co.uk/imagicon]
  2. Run the program to create an icon file, and save it to your program directory

Create an executable file and distribution directory:

  1. Download and install cs_Freeze from [http://cx-freeze.sourceforge.net/]
  2. Download and copy this font to your application directory: [freesansbold.ttf]
  3. Update your program to use this font (see tutorial video)
  4. Open a command prompt and navigate to your application directory
  5. Run cxfreeze on your python script
    \python31\scripts\cxfreeze "myprogram.py"
  6. Switch to 'dist' directory
    cd dist
  7. Copy needed files from parent
    copy ..\*.*

Create an installer

  1. Download the freeware version of InstallCreator from [http://www.clickteam.com/eng/installcreator.php]
  2. Run the wizard to create an installer for the distribution directory
    (Note, the video below does not set program name correctly. It instead sets it to the name of the icon.)

 类似资料:

相关阅读

相关文章

相关问答