Why can't Eclipse access iterparse from lxml.etree?

41 Views Asked by At

I'm running PyDev in Eclipse. After installing lxml with pip3, eclipse says it can't find the function iterparse from lxml.etree. (But it can find lxml.etree just fine)

I've checked with pip3 list and lxml is listed, still it gives me an error on the line:

from lxml.etree import iterparse saying Unresolved import: iterparse

Does anyone know what's going on or how to diagnose this or fix? Is it version-related? (Edit: lmxl v5.1.0 installed with pip3 v23.3.2)

0

There are 0 best solutions below