I want to work with the xml.etree.ElementTree module of python but I'm not able to import it to the script, ImportError: No module named etree.ElementTree. I'm totally sure that module is working because I'm able to run it without eclipse! How to make it work with Eclipse?

有帮助吗?

解决方案

add the xml's module paths in Preferance->PyDev->Interpreters->Python Interpreter C:\Python27\lib\xml

and import module in this way import etree.ElementTree as ET

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top