Error using etree in lxml
Question: I want to use xpath in python . I tried

    
    
    import xml.etree.ElementTree as ET
    

Since this library has limited usage I had to use lxml after a long session of
search on google. I had several problems during installation and finally i
installed lxml but when i use

    
    
    from lxml import etree
    

it throws back an error as below. could you please tell me the solution to
this problem!!!

    
    
    Traceback (most recent call last):
    File "<pyshell#0>", line 1, in <module>
    from lxml import etree
    ImportError: DLL load failed: %1 is not a valid Win32 application.
    

Can any1 tell me what the problem would be?? Thanks for assistance!!


Answer: I solved this by downloading the 64-bit version of lxml here:

<https://pypi.python.org/pypi/lxml/3.4.1>

lxml-3.4.1.win-amd64-py2.7.exe

It's the only one that worked to solve the win32 error. You might want to
destroy the old version of lxml before you do this.

