title: py2exe - No system module 'pywintypes'
body: <p>I'm trying to convert a simple Python script into a Windows executable. My setup.py script is:</p>
  
  <pre><code>from distutils.core import setup
  import py2exe
  
  setup(
      name = "Simple Script",
      options = {
          "py2exe": {
              "dll_excludes" : ["libmmd.dll","libifcoremd.dll","libiomp5md.dll","libzmq.dll"]
          }
      },
      console=['simple_script.py']
  )
  </code></pre>
  
  <p>I have added the dll_excludes as each one of them caused a failure. Now I've hit a failure that I can't simply exlude. This is the error trace:</p>
  
  <pre><code>Traceback (most recent call last):
    File "setup.py", line 12, in &lt;module&gt;
      console=['rules signed.py']
    File "C:\Anaconda\lib\distutils\core.py", line 152, in setup
      dist.run_commands()
    File "C:\Anaconda\lib\distutils\dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "C:\Anaconda\lib\distutils\dist.py", line 972, in run_command
      cmd_obj.run()
    File "C:\Anaconda\lib\site-packages\py2exe\build_exe.py", line 243, in run
      self._run()
    File "C:\Anaconda\lib\site-packages\py2exe\build_exe.py", line 306, in _run
      self.plat_finalize(mf.modules, py_files, extensions, dlls)
    File "C:\Anaconda\lib\site-packages\py2exe\build_exe.py", line 1157, in plat_finalize
      import pythoncom
    File "C:\Anaconda\lib\site-packages\pythoncom.py", line 2, in &lt;module&gt;
      import pywintypes
    File "C:\Anaconda\lib\site-packages\win32\lib\pywintypes.py", line 124, in &lt;module&gt;
      __import_pywin32_system_module__("pywintypes", globals())
    File "C:\Anaconda\lib\site-packages\win32\lib\pywintypes.py", line 98, in __import_pywin32_system_module__
      raise ImportError("No system module '%s' (%s)" % (modname, filename))
  ImportError: No system module 'pywintypes' (pywintypes27.dll)
  </code></pre>
  
  <p>I've installed pywin32 and tried excluding "pywintypes27.dll", "pywintypes", "pywin", "pywin.debugger" in my setup options, with no success. Also tried applying all other solutions I found on SO, such as moving "pythoncom27.dll", "pythoncomloader27.dll", and "pywintypes27.dll" to a top level directory. </p>
  
  <p>Nothing has eliminated the "ImportError: No system module 'pywintypes' (pywintypes27.dll)" problem</p>