title: How to import win32api
body: <p>I'm trying to use some python-2.1 code to control another program (ArcGIS). The version of python I am using is 2.5. I am getting the following error message when I run the code.</p>
  
  <pre><code>&lt;type'exceptions.ImportError'&gt;: No module named win32api
  Failed to execute (polyline2geonetwork2).
  </code></pre>
  
  <p>I tried installing pywin32-214.win32-py2.5.exe but I still get the same error message. I can't figure out if I need to do anything to my original python install so it knows that I have installed this.</p>
  
  <p>I think the problematic part of my code is the following:</p>
  
  <pre><code>import win32com.client, sys, string, os, re, time, math
  
  gp = win32com.client.Dispatch("esriGeoprocessing.GpDispatch.1")
  conn = win32com.client.Dispatch(r'ADODB.Connection')
  </code></pre>
  
  <p>Thanks for your help - I am quite new to python.</p>