Personal tools
You are here: Home Programming Learning Python Installing Python on Windows

Installing Python on Windows

by Brent Woodruff last modified Jul 21, 2008 02:21 AM

Detailed walk-through on installing Python and some very useful programs and packages on Windows.

LAD

If you're here to get LAD installed, you need Python 2.5, wxPython 2.8, Numeric or numpy, and NetworkX.

 

Install Python

http://www.python.org/ftp/python/2.5.1/python-2.5.1.msi 

 

Install wxPython

http://prdownloads.sourceforge.net/wxpython/wxPython2.8-win32-unicode-2.8.4.0-py25.exe

 

Install Python Image Library (PIL)

NEVER use easy_install to install this!
http://effbot.org/downloads/PIL-1.1.6.win32-py2.5.exe

 

Install numpy:

http://superb-west.dl.sourceforge.net/sourceforge/numpy/numpy-1.0.3.win32-py2.5.exe

 

Install NetworkX:

https://networkx.lanl.gov/download/networkx/networkx-0.35.1.win32.exe

 

Installing packages in general

Typically, there are three ways to install Python packages on Windows:
Note: packages install to a directory in the Python directory called site-packages
1. Provided .exe installer

  • Just download and install it
  • Make sure you match the right python version (2.5)


2. Run 'easy_install PACKAGE' after installing easy_install

  • Download ez_setup.py and install it
  • http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install
  • You will need to add C:\Python25\Scripts to the system's Path variable so easy_install can be run from the command prompt. To do this, go to the System control panel, then the Advanced tab, and then click the Environment Variables button. Once in that window, find Path under System Variables. Add a semicolon (the path separator) and the Python path to the end, i.e. ";C:\Python25\Scripts" . Once finished, click OK all the way back out to the desktop.

3. Compile/create package

  • Download the source zip/tar.gz
  • Extract to the package source directory
  • Run 'python setup.py install'

 

Installing Plone

Download and install the unified installer for Windows from http://plone.org/products/plone. The installation is a simple wizard which will ask you for an account name and password, then proceed to set up Zope and Plone. Once the wizard has completed, there will be a Plone entry in the start menu containing a Plone program for starting and stopping the server. Start the server using the provided program, then open a web browser and go to http://localhost:8080/

 

Other packages you may be interested in

PyOgre (3D rendering): http://www.ogre3d.org/wiki/index.php/PyOgre
PyODE (Physics engine): http://pyode.sourceforge.net/
PyGame (SDL Graphics, sound, control, etc): http://www.pygame.org/
PyOpenGL (low level graphics): http://pyopengl.sourceforge.net/

SPE Integrated Development Environment

Now for the development environment, SPE. This comes with wxGlade, an interface builder, and XRCed, an XML/interface file editor, as well as some other useful things. First you need subversion - on windows you might find tortoiseSVN to be easier to use:
http://superb-east.dl.sourceforge.net/sourceforge/tortoisesvn/TortoiseSVN-1.4.4.9706-win32-svn-1.4.4.msi

Go somewhere on your hard drive you want to keep the IDE. Checkout SPE using TortoiseSVN (right click, svn checkout) or the command line client:
svn checkout svn://svn.berlios.de/python/spe/trunk/_spe

Once that's checked out, run SPE by going in the _spe directory (DO NOT EVER RENAME THIS DIRECTORY) and run 'python SPE.py'. You can update to the latest version of SPE now by going into the _spe folder and running an update (TortoiseSVN - right click, SVN update):
svn update

Wingware-101 IDE

Those looking for a more professional IDE with commercial support and powerful features such as remote debugging might want to look at Wingware. They have a free version called Wingware-101 which is plenty enough for those getting started. Grab it from their website.
Document Actions