Hello, I am getting started with Python and I got stuck in installing lxml
So I typed pip install lxml and I get the below error.
Can you tell me what do I have to install and where to find it?
Some library? libxml2 or another? Some Microsoft C++ 14 Component?
I tried these things without success. Do you know an exact solution?
Maybe I need to install something else with pip that consists dependant?
Do I need to build lxml, but how to build it?
Thanks
pip install lxml
Collecting lxml
Using cached lxml-4.9.1.tar.gz (3.4 MB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: lxml
Building wheel for lxml (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [94 lines of output]
Building lxml version 4.9.1.
Building without Cython.
Building against pre-built libxml2 andl libxslt libraries
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\lxml
copying src\lxml\builder.py -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\cssselect.py -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\doctestcompare.py ->
build\lib.win-amd64-cpython-311\lxml
copying src\lxml\ElementInclude.py ->
build\lib.win-amd64-cpython-311\lxml
copying src\lxml\pyclasslookup.py ->
build\lib.win-amd64-cpython-311\lxml
copying src\lxml\sax.py -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\usedoctest.py -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\_elementpath.py ->
build\lib.win-amd64-cpython-311\lxml
copying src\lxml\__init__.py -> build\lib.win-amd64-cpython-311\lxml
creating build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\__init__.py ->
build\lib.win-amd64-cpython-311\lxml\includes
creating build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\builder.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\clean.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\defs.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\diff.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\ElementSoup.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\formfill.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\html5parser.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\soupparser.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\usedoctest.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\_diffcommand.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\_html5builder.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\_setmixin.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\__init__.py ->
build\lib.win-amd64-cpython-311\lxml\html
creating build\lib.win-amd64-cpython-311\lxml\isoschematron
copying src\lxml\isoschematron\__init__.py ->
build\lib.win-amd64-cpython-311\lxml\isoschematron
copying src\lxml\etree.h -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\etree_api.h -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\lxml.etree.h -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\lxml.etree_api.h ->
build\lib.win-amd64-cpython-311\lxml
copying src\lxml\includes\c14n.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\config.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\dtdvalid.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\etreepublic.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\htmlparser.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\relaxng.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\schematron.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\tree.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\uri.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\xinclude.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\xmlerror.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\xmlparser.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\xmlschema.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\xpath.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\xslt.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\__init__.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\etree_defs.h ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\lxml-version.h ->
build\lib.win-amd64-cpython-311\lxml\includes
creating build\lib.win-amd64-cpython-311\lxml\isoschematron\resources
creating
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\rng
copying src\lxml\isoschematron\resources\rng\iso-schematron.rng ->
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\rng
creating
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl ->
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl ->
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl
creating
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying
src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl
->
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying
src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl
->
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying
src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl
->
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying
src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl
->
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying
src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl
->
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying
src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt ->
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build\temp.win-amd64-cpython-311
creating build\temp.win-amd64-cpython-311\Release
creating build\temp.win-amd64-cpython-311\Release\src
creating build\temp.win-amd64-cpython-311\Release\src\lxml
"C:\Program Files (x86)\Microsoft Visual
Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe" /c
/nologo /O2 /W3 /GL /DNDEBUG /MD -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc
-Isrc\lxml\includes
-IC:\Users\Universum\AppData\Local\Programs\Python\Python311\include
-IC:\Users\Universum\AppData\Local\Programs\Python\Python311\Include
"-IC:\Program Files (x86)\Microsoft Visual
Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program
Files (x86)\Microsoft Visual
Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\ATLMFC\include"
"-IC:\Program Files (x86)\Microsoft Visual
Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files
(x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files
(x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc\lxml\etree.c
/Fobuild\temp.win-amd64-cpython-311\Release\src\lxml\etree.obj -w
cl : Command line warning D9025 : overriding '/W3' with '/w'
etree.c
C:\Users\Universum\AppData\Local\Temp\pip-install-0wyuaomy\lxml_c6a04d4318ec40639f1b22fcf30829c0\src\lxml\includes/etree_defs.h(14):
fatal error C1083: Cannot open include file: 'libxml/xmlversion.h': No such
file or directory
Compile failed: command 'C:\\Program Files (x86)\\Microsoft Visual
Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe'
failed with exit code 2
creating Users
creating Users\UNIVER~1
creating Users\UNIVER~1\AppData
creating Users\UNIVER~1\AppData\Local
creating Users\UNIVER~1\AppData\Local\Temp
"C:\Program Files (x86)\Microsoft Visual
Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe" /c
/nologo /O2 /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 "-IC:\Program Files
(x86)\Microsoft Visual
Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program
Files (x86)\Microsoft Visual
Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\ATLMFC\include"
"-IC:\Program Files (x86)\Microsoft Visual
Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files
(x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files
(x86)\Windows Kits\NETFXSDK\4.8\include\um"
/TcC:\Users\UNIVER~1\AppData\Local\Temp\xmlXPathInitkexz0g8y.c
/FoUsers\UNIVER~1\AppData\Local\Temp\xmlXPathInitkexz0g8y.obj
xmlXPathInitkexz0g8y.c
C:\Users\UNIVER~1\AppData\Local\Temp\xmlXPathInitkexz0g8y.c(1): fatal
error C1083: Cannot open include file: 'libxml/xpath.h': No such file or
directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual
Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe'
failed with exit code 2
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is
libxml2 installed?
*********************************************************************************
[end of output]
note: This error originates from a subprocess, and is likely not a
problem with pip.
ERROR: Failed building wheel for lxml
Running setup.py clean for lxml
Failed to build lxml
Installing collected packages: lxml
Running setup.py install for lxml ... error
error: subprocess-exited-with-error
× Running setup.py install for lxml did not run successfully.
│ exit code: 1
╰─> [91 lines of output]
Building lxml version 4.9.1.
Building without Cython.
Building against pre-built libxml2 andl libxslt libraries
running install
C:\Users\Universum\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\command\install.py:34:
SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and
pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\lxml
copying src\lxml\builder.py -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\cssselect.py -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\doctestcompare.py ->
build\lib.win-amd64-cpython-311\lxml
copying src\lxml\ElementInclude.py ->
build\lib.win-amd64-cpython-311\lxml
copying src\lxml\pyclasslookup.py ->
build\lib.win-amd64-cpython-311\lxml
copying src\lxml\sax.py -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\usedoctest.py -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\_elementpath.py ->
build\lib.win-amd64-cpython-311\lxml
copying src\lxml\__init__.py -> build\lib.win-amd64-cpython-311\lxml
creating build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\__init__.py ->
build\lib.win-amd64-cpython-311\lxml\includes
creating build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\builder.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\clean.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\defs.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\diff.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\ElementSoup.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\formfill.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\html5parser.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\soupparser.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\usedoctest.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\_diffcommand.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\_html5builder.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\_setmixin.py ->
build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\__init__.py ->
build\lib.win-amd64-cpython-311\lxml\html
creating build\lib.win-amd64-cpython-311\lxml\isoschematron
copying src\lxml\isoschematron\__init__.py ->
build\lib.win-amd64-cpython-311\lxml\isoschematron
copying src\lxml\etree.h -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\etree_api.h -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\lxml.etree.h -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\lxml.etree_api.h ->
build\lib.win-amd64-cpython-311\lxml
copying src\lxml\includes\c14n.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\config.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\dtdvalid.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\etreepublic.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\htmlparser.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\relaxng.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\schematron.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\tree.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\uri.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\xinclude.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\xmlerror.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\xmlparser.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\xmlschema.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\xpath.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\xslt.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\__init__.pxd ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\etree_defs.h ->
build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\lxml-version.h ->
build\lib.win-amd64-cpython-311\lxml\includes
creating build\lib.win-amd64-cpython-311\lxml\isoschematron\resources
creating
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\rng
copying src\lxml\isoschematron\resources\rng\iso-schematron.rng ->
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\rng
creating
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl ->
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl ->
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl
creating
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying
src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl
->
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying
src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl
->
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying
src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl
->
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying
src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl
->
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying
src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl
->
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying
src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt ->
build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build\temp.win-amd64-cpython-311
creating build\temp.win-amd64-cpython-311\Release
creating build\temp.win-amd64-cpython-311\Release\src
creating build\temp.win-amd64-cpython-311\Release\src\lxml
"C:\Program Files (x86)\Microsoft Visual
Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe" /c
/nologo /O2 /W3 /GL /DNDEBUG /MD -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc
-Isrc\lxml\includes
-IC:\Users\Universum\AppData\Local\Programs\Python\Python311\include
-IC:\Users\Universum\AppData\Local\Programs\Python\Python311\Include
"-IC:\Program Files (x86)\Microsoft Visual
Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program
Files (x86)\Microsoft Visual
Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\ATLMFC\include"
"-IC:\Program Files (x86)\Microsoft Visual
Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files
(x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files
(x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc\lxml\etree.c
/Fobuild\temp.win-amd64-cpython-311\Release\src\lxml\etree.obj -w
cl : Command line warning D9025 : overriding '/W3' with '/w'
etree.c
C:\Users\Universum\AppData\Local\Temp\pip-install-0wyuaomy\lxml_c6a04d4318ec40639f1b22fcf30829c0\src\lxml\includes/etree_defs.h(14):
fatal error C1083: Cannot open include file: 'libxml/xmlversion.h': No such
file or directory
Compile failed: command 'C:\\Program Files (x86)\\Microsoft Visual
Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe'
failed with exit code 2
"C:\Program Files (x86)\Microsoft Visual
Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe" /c
/nologo /O2 /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 "-IC:\Program Files
(x86)\Microsoft Visual
Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program
Files (x86)\Microsoft Visual
Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\ATLMFC\include"
"-IC:\Program Files (x86)\Microsoft Visual
Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files
(x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files
(x86)\Windows Kits\NETFXSDK\4.8\include\um"
/TcC:\Users\UNIVER~1\AppData\Local\Temp\xmlXPathInitnfadutnq.c
/FoUsers\UNIVER~1\AppData\Local\Temp\xmlXPathInitnfadutnq.obj
xmlXPathInitnfadutnq.c
C:\Users\UNIVER~1\AppData\Local\Temp\xmlXPathInitnfadutnq.c(1): fatal
error C1083: Cannot open include file: 'libxml/xpath.h': No such file or
directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual
Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe'
failed with exit code 2
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is
libxml2 installed?
*********************************************************************************
[end of output]
note: This error originates from a subprocess, and is likely not a
problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> lxml
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.