I am using Anaconda v4.2 with Python 3.5 on Windows 32 bit, and wanting to use lxml etree. My Anaconda distribution includes lxml 3.6.4, but the only lxml function that my IDE (PyCharm, although I'm getting the same error when running the code with Jupyter Notebook) can see is get_include(). The following code:
import lxml
full_xml_tree = lxml.etree.parse('myfile.xml')
just gives me the error:
AttributeError: module 'lxml' has no attribute 'etree'
I also tried installing the VisualC++ compiler for Windows, but that hasn't made any difference. I tried reinstalling lxml using conda on the command line, again no change to my error. What am I missing? It seems like the lxml.get_include() function isn't finding any of the files to include, and I don't really understand how the etree.cp35-win32.pyd file (which I assume contains the compiled etree code??) should be being associated with the lxml package. Any help much appreciated!
Cathy