문제

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