I'm trying to import lxml into my code that I'm working with in text editor, using:
from lxml import etree
But when I run my code, I get an import error that says
No module named 'lxml'
If I run python from the terminal, however, I can use the lxml module with no problem. Why is this, and how can I fix it?