Forums

How to fix: ImportError: lxml not found, please install it

I keep recieving this error when using the code

df = pd.read_html(currentData.content)

but I have lxml downloaded.

pip freeze shows lxml==4.7.1

let me know any other information you need to help me!

Jk I didn't realize my bash console wasn't in my venv

pip install lxml

in my venv and it worked perfectly

Glad you were able to fix it