Receiving "fatal error C1083: Cannot open include file: 'libxml/xpath.h': No such file or directory" while trying to install lxml

821 views Asked by At

I am attempting to install lxml using "pip install lxml" in my terminal, and receiving the C1083 error. I have seen similar posts, and based on those suggested answers attempted the following:

Downloading .whl files from https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml. I am using a 32-bit version of Python 3.8 using Windows 10 and attempt:

pip install C:\folders\lxml-4.5.2-cp38-cp38-win32.whl

however it claims it is not a supported wheel on this platform. As a check, I used every lxml from the site, with the exact same error. I then attempt to use

pip install lxml --extra-index-url=https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

which results in the C1083 error as well.

I am aware that I need libxml/xpath.h, but for some reason none of the wheel files are being accepted. Please let me know if there's any additional information I can provide. How can I go about installing lxml?

0

There are 0 answers