Go to Python official website http://www.python.org/download/ and download the latest Windows installer (.msi). Follow the screen and install it.
Open Start -> Administrative Tools > Internet Information Services (IIS) Manager. Click "Web Service Extensions" and add a new web service 'C:\Python25\python.exe -u "%s" "%s"'.
Go to website that you want to eanble Phyton. Right click the website and go to Properties > Home Directory > Configurations > Mappings. Add a new script mapping ".py" with 'C:\Python25\python.exe -u "%s" "%s"'.
Write a test file test.py and test it out. Everything should work now.
print print 'Status: 200 OK' print 'Content-type: text/html' print print '<HTML><HEAD><TITLE>Python Sample CGI</TITLE></HEAD>' print '<BODY>' print '<H1>This is a header</H1>' print '<p>' #this is a comment print 'See this is just like most other HTML' print '<br>' print '</BODY>'
If you have a control panel for your server, you may need to configure it as well. Below is a sample for Helm control panel.