Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't install lxml for python 3.8.1 on windows

I am on Windows 10 64-bit, in a venv.

Pip install lxml return 

Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?

So I tried to use the appropriate .whl availlable here (lxml-4.5.0-cp38-cp38-win_amd64.whl) which leads to another error:

lxml-4.5.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.

I tried to use pip.exe, pip3.exe, pip3.8.exe and the 64x and 32x bit versions of the .whl file without success

Am I missing something or is the Python 3.8 version of the package not compatible with Python 3.8.1?

like image 785
cpt.Catap Avatar asked Nov 21 '25 15:11

cpt.Catap


1 Answers

This happens because you probably have an older version of python alongside 3.8 and when you install the package it references the older one. You can try deleting all python versions and installing Python 3.8 again

like image 180
Vadim Osovsky Avatar answered Nov 23 '25 04:11

Vadim Osovsky