lxml: Undefined variable etree
问题 I'm returning to Python after a little hiatus. Some projects that used to work now have a problem with lxml. I have the latest source from github installed locally and have it in an Eclipse project. This project has the following in PyDev-PYTHONPATH: /${PROJECT_DIR_NAME} /${PROJECT_DIR_NAME}/src In a project that uses lxml , in the Project References, I have the lxml project checked. A file in this project has: import lxml which is underlined in yellow with the warning: Unused import: lxml