title: Py2exe lxml woes
body: <p>I have a wxpython application that depends on lxml and works well when running it through the python interpreter. However, when creating an exe with py2exe, I got this error </p>
  
  <pre><code>ImportError: No module named _elementpath
  </code></pre>
  
  <p>I then used <code>python setup.py py2exe -p lxml</code>  and I did not get the above error but
  another one saying</p>
  
  <pre><code>ImportError: No module named gzip
  </code></pre>
  
  <p>Could anyone let me know what the problem is and how I can fix it. Also should I put any
  dll files like libxml2, libxslt etc in my dist folder? I searched the computer
  and did not find these files, so maybe they aren't needed?</p>
  
  <p>Thanks.</p>
  
  <p>Edit: I just tried with <code>python setup.py py2exe -p -i gzip</code> and the exe was created. But the exe generated does not run. I double click it and it doesn't do anything.</p>
  
  <p>Here's the setup.py script i'm using</p>
  
  <pre><code>from py2exe.build_exe import py2exe
  from distutils.core import setup
  
  setup( windows=[{"script": "gui.py"}] )
  </code></pre>
  
  <p><br /><br /></p>
  
  <p>Edit2: I tried using cx_freeze as an alternative , but got the same</p>
  
  <pre><code>ImportError: No module named _elementpath
  </code></pre>
  
  <p>error. Didn't know how to proceed after that.</p>