Can't Install Taurus on Windows 10 with Python 3.10.0
Question:
Can’t Install Taurus on Windows 10 with Python 3.10.0.
Following Prerequisites are installed
- Get Python 3.7+ from http://www.python.org/downloads and install it, don’t forget to enable "Add python.exe to Path" checkbox.
- Get the latest Java from https://www.java.com/download/ and install it.
- Get the latest Microsoft Visual C++ and install it.
Please check that the ‘Desktop Development with C++’ box is checked during installation.
I did run this command and got success
python -m pip install --upgrade pip setuptools wheel
And then I did run this command it was failed and getting this below error message python -m pip install bzt
Building wheels for collected packages: lxml
Building wheel for lxml (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:Python310python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Velu\AppData\Local\Temp\pip-install-x4tnp252\lxml_934044ed969e46eeb5efa36af2247526\setup.py'"'"'; __file__='"'"'C:\Users\Velu\AppData\Local\Temp\pip-install-x4tnp252\lxml_934044ed969e46eeb5efa36af2247526\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:UsersVeluAppDataLocalTemppip-wheel-jkg2tj3w'
cwd: C:UsersVeluAppDataLocalTemppip-install-x4tnp252lxml_934044ed969e46eeb5efa36af2247526
Complete output (94 lines):
Building lxml version 4.6.3.
Building without Cython.
Building against pre-built libxml2 andl libxslt libraries
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-3.10
creating buildlib.win-amd64-3.10lxml
copying srclxmlbuilder.py -> buildlib.win-amd64-3.10lxml
copying srclxmlcssselect.py -> buildlib.win-amd64-3.10lxml
copying srclxmldoctestcompare.py -> buildlib.win-amd64-3.10lxml
copying srclxmlElementInclude.py -> buildlib.win-amd64-3.10lxml
copying srclxmlpyclasslookup.py -> buildlib.win-amd64-3.10lxml
copying srclxmlsax.py -> buildlib.win-amd64-3.10lxml
copying srclxmlusedoctest.py -> buildlib.win-amd64-3.10lxml
copying srclxml_elementpath.py -> buildlib.win-amd64-3.10lxml
copying srclxml__init__.py -> buildlib.win-amd64-3.10lxml
creating buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludes__init__.py -> buildlib.win-amd64-3.10lxmlincludes
creating buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlbuilder.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlclean.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmldefs.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmldiff.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlElementSoup.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlformfill.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlhtml5parser.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlsoupparser.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlusedoctest.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtml_diffcommand.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtml_html5builder.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtml_setmixin.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtml__init__.py -> buildlib.win-amd64-3.10lxmlhtml
creating buildlib.win-amd64-3.10lxmlisoschematron
copying srclxmlisoschematron__init__.py -> buildlib.win-amd64-3.10lxmlisoschematron
copying srclxmletree.h -> buildlib.win-amd64-3.10lxml
copying srclxmletree_api.h -> buildlib.win-amd64-3.10lxml
copying srclxmllxml.etree.h -> buildlib.win-amd64-3.10lxml
copying srclxmllxml.etree_api.h -> buildlib.win-amd64-3.10lxml
copying srclxmlincludesc14n.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesconfig.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesdtdvalid.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesetreepublic.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludeshtmlparser.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesrelaxng.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesschematron.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludestree.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesuri.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxinclude.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxmlerror.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxmlparser.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxmlschema.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxpath.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxslt.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludes__init__.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesetree_defs.h -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludeslxml-version.h -> buildlib.win-amd64-3.10lxmlincludes
creating buildlib.win-amd64-3.10lxmlisoschematronresources
creating buildlib.win-amd64-3.10lxmlisoschematronresourcesrng
copying srclxmlisoschematronresourcesrngiso-schematron.rng -> buildlib.win-amd64-3.10lxmlisoschematronresourcesrng
creating buildlib.win-amd64-3.10lxmlisoschematronresourcesxsl
copying srclxmlisoschematronresourcesxslRNG2Schtrn.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsl
copying srclxmlisoschematronresourcesxslXSD2Schtrn.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsl
creating buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_abstract_expand.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_dsdl_include.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_schematron_message.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_schematron_skeleton_for_xslt1.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_svrl_for_xslt1.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1readme.txt -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating buildtemp.win-amd64-3.10
creating buildtemp.win-amd64-3.10Release
creating buildtemp.win-amd64-3.10Releasesrc
creating buildtemp.win-amd64-3.10Releasesrclxml
C:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133binHostX86x64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrclxmlincludes -IC:Python310include -IC:Python310Include -IC:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133ATLMFCinclude -IC:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133include -IC:Program Files (x86)Windows KitsNETFXSDK4.8includeum -IC:Program Files (x86)Windows Kits10include10.0.19041.0ucrt -IC:Program Files (x86)Windows Kits10include10.0.19041.0shared -IC:Program Files (x86)Windows Kits10include10.0.19041.0um -IC:Program Files (x86)Windows Kits10include10.0.19041.0winrt -IC:Program Files (x86)Windows Kits10include10.0.19041.0cppwinrt /Tcsrclxmletree.c /Fobuildtemp.win-amd64-3.10Releasesrclxmletree.obj -w
cl : Command line warning D9025 : overriding '/W3' with '/w'
etree.c
C:UsersVeluAppDataLocalTemppip-install-x4tnp252lxml_934044ed969e46eeb5efa36af2247526srclxmlincludes/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\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2
creating Users
creating UsersVelu
creating UsersVeluAppData
creating UsersVeluAppDataLocal
creating UsersVeluAppDataLocalTemp
C:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133binHostX86x64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 -IC:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133ATLMFCinclude -IC:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133include -IC:Program Files (x86)Windows KitsNETFXSDK4.8includeum -IC:Program Files (x86)Windows Kits10include10.0.19041.0ucrt -IC:Program Files (x86)Windows Kits10include10.0.19041.0shared -IC:Program Files (x86)Windows Kits10include10.0.19041.0um -IC:Program Files (x86)Windows Kits10include10.0.19041.0winrt -IC:Program Files (x86)Windows Kits10include10.0.19041.0cppwinrt /TcC:UsersVeluAppDataLocalTempxmlXPathInitgikupn8o.c /FoUsersVeluAppDataLocalTempxmlXPathInitgikupn8o.obj
xmlXPathInitgikupn8o.c
C:UsersVeluAppDataLocalTempxmlXPathInitgikupn8o.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\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
----------------------------------------
ERROR: Failed building wheel for lxml
Running setup.py clean for lxml
Failed to build lxml
Installing collected packages: lxml, hdrpy, fuzzyset2, Cython, cssselect, colorlog, astunparse, Appium-Python-Client, bzt
Running setup.py install for lxml ... error
ERROR: Command errored out with exit status 1:
command: 'C:Python310python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Velu\AppData\Local\Temp\pip-install-x4tnp252\lxml_934044ed969e46eeb5efa36af2247526\setup.py'"'"'; __file__='"'"'C:\Users\Velu\AppData\Local\Temp\pip-install-x4tnp252\lxml_934044ed969e46eeb5efa36af2247526\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersVeluAppDataLocalTemppip-record-1q5zbo4zinstall-record.txt' --single-version-externally-managed --compile --install-headers 'C:Python310Includelxml'
cwd: C:UsersVeluAppDataLocalTemppip-install-x4tnp252lxml_934044ed969e46eeb5efa36af2247526
Complete output (91 lines):
Building lxml version 4.6.3.
Building without Cython.
Building against pre-built libxml2 andl libxslt libraries
running install
C:Python310libsite-packagessetuptoolscommandinstall.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 buildlib.win-amd64-3.10
creating buildlib.win-amd64-3.10lxml
copying srclxmlbuilder.py -> buildlib.win-amd64-3.10lxml
copying srclxmlcssselect.py -> buildlib.win-amd64-3.10lxml
copying srclxmldoctestcompare.py -> buildlib.win-amd64-3.10lxml
copying srclxmlElementInclude.py -> buildlib.win-amd64-3.10lxml
copying srclxmlpyclasslookup.py -> buildlib.win-amd64-3.10lxml
copying srclxmlsax.py -> buildlib.win-amd64-3.10lxml
copying srclxmlusedoctest.py -> buildlib.win-amd64-3.10lxml
copying srclxml_elementpath.py -> buildlib.win-amd64-3.10lxml
copying srclxml__init__.py -> buildlib.win-amd64-3.10lxml
creating buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludes__init__.py -> buildlib.win-amd64-3.10lxmlincludes
creating buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlbuilder.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlclean.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmldefs.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmldiff.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlElementSoup.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlformfill.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlhtml5parser.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlsoupparser.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlusedoctest.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtml_diffcommand.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtml_html5builder.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtml_setmixin.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtml__init__.py -> buildlib.win-amd64-3.10lxmlhtml
creating buildlib.win-amd64-3.10lxmlisoschematron
copying srclxmlisoschematron__init__.py -> buildlib.win-amd64-3.10lxmlisoschematron
copying srclxmletree.h -> buildlib.win-amd64-3.10lxml
copying srclxmletree_api.h -> buildlib.win-amd64-3.10lxml
copying srclxmllxml.etree.h -> buildlib.win-amd64-3.10lxml
copying srclxmllxml.etree_api.h -> buildlib.win-amd64-3.10lxml
copying srclxmlincludesc14n.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesconfig.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesdtdvalid.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesetreepublic.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludeshtmlparser.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesrelaxng.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesschematron.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludestree.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesuri.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxinclude.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxmlerror.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxmlparser.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxmlschema.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxpath.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxslt.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludes__init__.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesetree_defs.h -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludeslxml-version.h -> buildlib.win-amd64-3.10lxmlincludes
creating buildlib.win-amd64-3.10lxmlisoschematronresources
creating buildlib.win-amd64-3.10lxmlisoschematronresourcesrng
copying srclxmlisoschematronresourcesrngiso-schematron.rng -> buildlib.win-amd64-3.10lxmlisoschematronresourcesrng
creating buildlib.win-amd64-3.10lxmlisoschematronresourcesxsl
copying srclxmlisoschematronresourcesxslRNG2Schtrn.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsl
copying srclxmlisoschematronresourcesxslXSD2Schtrn.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsl
creating buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_abstract_expand.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_dsdl_include.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_schematron_message.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_schematron_skeleton_for_xslt1.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_svrl_for_xslt1.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1readme.txt -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating buildtemp.win-amd64-3.10
creating buildtemp.win-amd64-3.10Release
creating buildtemp.win-amd64-3.10Releasesrc
creating buildtemp.win-amd64-3.10Releasesrclxml
C:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133binHostX86x64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrclxmlincludes -IC:Python310include -IC:Python310Include -IC:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133ATLMFCinclude -IC:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133include -IC:Program Files (x86)Windows KitsNETFXSDK4.8includeum -IC:Program Files (x86)Windows Kits10include10.0.19041.0ucrt -IC:Program Files (x86)Windows Kits10include10.0.19041.0shared -IC:Program Files (x86)Windows Kits10include10.0.19041.0um -IC:Program Files (x86)Windows Kits10include10.0.19041.0winrt -IC:Program Files (x86)Windows Kits10include10.0.19041.0cppwinrt /Tcsrclxmletree.c /Fobuildtemp.win-amd64-3.10Releasesrclxmletree.obj -w
cl : Command line warning D9025 : overriding '/W3' with '/w'
etree.c
C:UsersVeluAppDataLocalTemppip-install-x4tnp252lxml_934044ed969e46eeb5efa36af2247526srclxmlincludes/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\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2
C:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133binHostX86x64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 -IC:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133ATLMFCinclude -IC:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133include -IC:Program Files (x86)Windows KitsNETFXSDK4.8includeum -IC:Program Files (x86)Windows Kits10include10.0.19041.0ucrt -IC:Program Files (x86)Windows Kits10include10.0.19041.0shared -IC:Program Files (x86)Windows Kits10include10.0.19041.0um -IC:Program Files (x86)Windows Kits10include10.0.19041.0winrt -IC:Program Files (x86)Windows Kits10include10.0.19041.0cppwinrt /TcC:UsersVeluAppDataLocalTempxmlXPathInitfo8vzh85.c /FoUsersVeluAppDataLocalTempxmlXPathInitfo8vzh85.obj
xmlXPathInitfo8vzh85.c
C:UsersVeluAppDataLocalTempxmlXPathInitfo8vzh85.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\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:Python310python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Velu\AppData\Local\Temp\pip-install-x4tnp252\lxml_934044ed969e46eeb5efa36af2247526\setup.py'"'"'; __file__='"'"'C:\Users\Velu\AppData\Local\Temp\pip-install-x4tnp252\lxml_934044ed969e46eeb5efa36af2247526\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersVeluAppDataLocalTemppip-record-1q5zbo4zinstall-record.txt' --single-version-externally-managed --compile --install-headers 'C:Python310Includelxml' Check the logs for full command output.
Also tried this command still no luck. pip install lxml
I did find a few other StackOverflow answers try all but still no luck. most of the answers are old versions.
Does anyone have this issue? Any help would be appreciated.
Answers:
Got it working by c:temp>pip install lxml-4.6.3-cp310-cp310-win_amd64.whl
Importantly we need to choose the right version based on your python version.
In my case I have installed 64-bit python 3.10.0
From here, download the lxml-4.6.3-cp310-cp310-win_amd64.whl http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml and copied the file to c:temp and then installed it with the above command.
Importantly you need to choose the correct file for your specific version cp310 here 310 reference to your python version.
This one solved my problem:
pip install cython
pip install fuzzyset
Can’t Install Taurus on Windows 10 with Python 3.10.0.
Following Prerequisites are installed
- Get Python 3.7+ from http://www.python.org/downloads and install it, don’t forget to enable "Add python.exe to Path" checkbox.
- Get the latest Java from https://www.java.com/download/ and install it.
- Get the latest Microsoft Visual C++ and install it.
Please check that the ‘Desktop Development with C++’ box is checked during installation.
I did run this command and got success
python -m pip install --upgrade pip setuptools wheel
And then I did run this command it was failed and getting this below error message python -m pip install bzt
Building wheels for collected packages: lxml
Building wheel for lxml (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:Python310python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Velu\AppData\Local\Temp\pip-install-x4tnp252\lxml_934044ed969e46eeb5efa36af2247526\setup.py'"'"'; __file__='"'"'C:\Users\Velu\AppData\Local\Temp\pip-install-x4tnp252\lxml_934044ed969e46eeb5efa36af2247526\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:UsersVeluAppDataLocalTemppip-wheel-jkg2tj3w'
cwd: C:UsersVeluAppDataLocalTemppip-install-x4tnp252lxml_934044ed969e46eeb5efa36af2247526
Complete output (94 lines):
Building lxml version 4.6.3.
Building without Cython.
Building against pre-built libxml2 andl libxslt libraries
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-3.10
creating buildlib.win-amd64-3.10lxml
copying srclxmlbuilder.py -> buildlib.win-amd64-3.10lxml
copying srclxmlcssselect.py -> buildlib.win-amd64-3.10lxml
copying srclxmldoctestcompare.py -> buildlib.win-amd64-3.10lxml
copying srclxmlElementInclude.py -> buildlib.win-amd64-3.10lxml
copying srclxmlpyclasslookup.py -> buildlib.win-amd64-3.10lxml
copying srclxmlsax.py -> buildlib.win-amd64-3.10lxml
copying srclxmlusedoctest.py -> buildlib.win-amd64-3.10lxml
copying srclxml_elementpath.py -> buildlib.win-amd64-3.10lxml
copying srclxml__init__.py -> buildlib.win-amd64-3.10lxml
creating buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludes__init__.py -> buildlib.win-amd64-3.10lxmlincludes
creating buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlbuilder.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlclean.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmldefs.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmldiff.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlElementSoup.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlformfill.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlhtml5parser.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlsoupparser.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlusedoctest.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtml_diffcommand.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtml_html5builder.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtml_setmixin.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtml__init__.py -> buildlib.win-amd64-3.10lxmlhtml
creating buildlib.win-amd64-3.10lxmlisoschematron
copying srclxmlisoschematron__init__.py -> buildlib.win-amd64-3.10lxmlisoschematron
copying srclxmletree.h -> buildlib.win-amd64-3.10lxml
copying srclxmletree_api.h -> buildlib.win-amd64-3.10lxml
copying srclxmllxml.etree.h -> buildlib.win-amd64-3.10lxml
copying srclxmllxml.etree_api.h -> buildlib.win-amd64-3.10lxml
copying srclxmlincludesc14n.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesconfig.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesdtdvalid.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesetreepublic.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludeshtmlparser.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesrelaxng.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesschematron.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludestree.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesuri.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxinclude.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxmlerror.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxmlparser.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxmlschema.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxpath.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxslt.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludes__init__.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesetree_defs.h -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludeslxml-version.h -> buildlib.win-amd64-3.10lxmlincludes
creating buildlib.win-amd64-3.10lxmlisoschematronresources
creating buildlib.win-amd64-3.10lxmlisoschematronresourcesrng
copying srclxmlisoschematronresourcesrngiso-schematron.rng -> buildlib.win-amd64-3.10lxmlisoschematronresourcesrng
creating buildlib.win-amd64-3.10lxmlisoschematronresourcesxsl
copying srclxmlisoschematronresourcesxslRNG2Schtrn.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsl
copying srclxmlisoschematronresourcesxslXSD2Schtrn.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsl
creating buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_abstract_expand.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_dsdl_include.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_schematron_message.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_schematron_skeleton_for_xslt1.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_svrl_for_xslt1.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1readme.txt -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating buildtemp.win-amd64-3.10
creating buildtemp.win-amd64-3.10Release
creating buildtemp.win-amd64-3.10Releasesrc
creating buildtemp.win-amd64-3.10Releasesrclxml
C:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133binHostX86x64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrclxmlincludes -IC:Python310include -IC:Python310Include -IC:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133ATLMFCinclude -IC:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133include -IC:Program Files (x86)Windows KitsNETFXSDK4.8includeum -IC:Program Files (x86)Windows Kits10include10.0.19041.0ucrt -IC:Program Files (x86)Windows Kits10include10.0.19041.0shared -IC:Program Files (x86)Windows Kits10include10.0.19041.0um -IC:Program Files (x86)Windows Kits10include10.0.19041.0winrt -IC:Program Files (x86)Windows Kits10include10.0.19041.0cppwinrt /Tcsrclxmletree.c /Fobuildtemp.win-amd64-3.10Releasesrclxmletree.obj -w
cl : Command line warning D9025 : overriding '/W3' with '/w'
etree.c
C:UsersVeluAppDataLocalTemppip-install-x4tnp252lxml_934044ed969e46eeb5efa36af2247526srclxmlincludes/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\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2
creating Users
creating UsersVelu
creating UsersVeluAppData
creating UsersVeluAppDataLocal
creating UsersVeluAppDataLocalTemp
C:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133binHostX86x64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 -IC:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133ATLMFCinclude -IC:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133include -IC:Program Files (x86)Windows KitsNETFXSDK4.8includeum -IC:Program Files (x86)Windows Kits10include10.0.19041.0ucrt -IC:Program Files (x86)Windows Kits10include10.0.19041.0shared -IC:Program Files (x86)Windows Kits10include10.0.19041.0um -IC:Program Files (x86)Windows Kits10include10.0.19041.0winrt -IC:Program Files (x86)Windows Kits10include10.0.19041.0cppwinrt /TcC:UsersVeluAppDataLocalTempxmlXPathInitgikupn8o.c /FoUsersVeluAppDataLocalTempxmlXPathInitgikupn8o.obj
xmlXPathInitgikupn8o.c
C:UsersVeluAppDataLocalTempxmlXPathInitgikupn8o.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\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
----------------------------------------
ERROR: Failed building wheel for lxml
Running setup.py clean for lxml
Failed to build lxml
Installing collected packages: lxml, hdrpy, fuzzyset2, Cython, cssselect, colorlog, astunparse, Appium-Python-Client, bzt
Running setup.py install for lxml ... error
ERROR: Command errored out with exit status 1:
command: 'C:Python310python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Velu\AppData\Local\Temp\pip-install-x4tnp252\lxml_934044ed969e46eeb5efa36af2247526\setup.py'"'"'; __file__='"'"'C:\Users\Velu\AppData\Local\Temp\pip-install-x4tnp252\lxml_934044ed969e46eeb5efa36af2247526\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersVeluAppDataLocalTemppip-record-1q5zbo4zinstall-record.txt' --single-version-externally-managed --compile --install-headers 'C:Python310Includelxml'
cwd: C:UsersVeluAppDataLocalTemppip-install-x4tnp252lxml_934044ed969e46eeb5efa36af2247526
Complete output (91 lines):
Building lxml version 4.6.3.
Building without Cython.
Building against pre-built libxml2 andl libxslt libraries
running install
C:Python310libsite-packagessetuptoolscommandinstall.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 buildlib.win-amd64-3.10
creating buildlib.win-amd64-3.10lxml
copying srclxmlbuilder.py -> buildlib.win-amd64-3.10lxml
copying srclxmlcssselect.py -> buildlib.win-amd64-3.10lxml
copying srclxmldoctestcompare.py -> buildlib.win-amd64-3.10lxml
copying srclxmlElementInclude.py -> buildlib.win-amd64-3.10lxml
copying srclxmlpyclasslookup.py -> buildlib.win-amd64-3.10lxml
copying srclxmlsax.py -> buildlib.win-amd64-3.10lxml
copying srclxmlusedoctest.py -> buildlib.win-amd64-3.10lxml
copying srclxml_elementpath.py -> buildlib.win-amd64-3.10lxml
copying srclxml__init__.py -> buildlib.win-amd64-3.10lxml
creating buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludes__init__.py -> buildlib.win-amd64-3.10lxmlincludes
creating buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlbuilder.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlclean.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmldefs.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmldiff.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlElementSoup.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlformfill.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlhtml5parser.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlsoupparser.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtmlusedoctest.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtml_diffcommand.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtml_html5builder.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtml_setmixin.py -> buildlib.win-amd64-3.10lxmlhtml
copying srclxmlhtml__init__.py -> buildlib.win-amd64-3.10lxmlhtml
creating buildlib.win-amd64-3.10lxmlisoschematron
copying srclxmlisoschematron__init__.py -> buildlib.win-amd64-3.10lxmlisoschematron
copying srclxmletree.h -> buildlib.win-amd64-3.10lxml
copying srclxmletree_api.h -> buildlib.win-amd64-3.10lxml
copying srclxmllxml.etree.h -> buildlib.win-amd64-3.10lxml
copying srclxmllxml.etree_api.h -> buildlib.win-amd64-3.10lxml
copying srclxmlincludesc14n.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesconfig.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesdtdvalid.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesetreepublic.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludeshtmlparser.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesrelaxng.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesschematron.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludestree.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesuri.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxinclude.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxmlerror.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxmlparser.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxmlschema.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxpath.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesxslt.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludes__init__.pxd -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludesetree_defs.h -> buildlib.win-amd64-3.10lxmlincludes
copying srclxmlincludeslxml-version.h -> buildlib.win-amd64-3.10lxmlincludes
creating buildlib.win-amd64-3.10lxmlisoschematronresources
creating buildlib.win-amd64-3.10lxmlisoschematronresourcesrng
copying srclxmlisoschematronresourcesrngiso-schematron.rng -> buildlib.win-amd64-3.10lxmlisoschematronresourcesrng
creating buildlib.win-amd64-3.10lxmlisoschematronresourcesxsl
copying srclxmlisoschematronresourcesxslRNG2Schtrn.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsl
copying srclxmlisoschematronresourcesxslXSD2Schtrn.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsl
creating buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_abstract_expand.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_dsdl_include.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_schematron_message.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_schematron_skeleton_for_xslt1.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_svrl_for_xslt1.xsl -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1readme.txt -> buildlib.win-amd64-3.10lxmlisoschematronresourcesxsliso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating buildtemp.win-amd64-3.10
creating buildtemp.win-amd64-3.10Release
creating buildtemp.win-amd64-3.10Releasesrc
creating buildtemp.win-amd64-3.10Releasesrclxml
C:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133binHostX86x64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrclxmlincludes -IC:Python310include -IC:Python310Include -IC:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133ATLMFCinclude -IC:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133include -IC:Program Files (x86)Windows KitsNETFXSDK4.8includeum -IC:Program Files (x86)Windows Kits10include10.0.19041.0ucrt -IC:Program Files (x86)Windows Kits10include10.0.19041.0shared -IC:Program Files (x86)Windows Kits10include10.0.19041.0um -IC:Program Files (x86)Windows Kits10include10.0.19041.0winrt -IC:Program Files (x86)Windows Kits10include10.0.19041.0cppwinrt /Tcsrclxmletree.c /Fobuildtemp.win-amd64-3.10Releasesrclxmletree.obj -w
cl : Command line warning D9025 : overriding '/W3' with '/w'
etree.c
C:UsersVeluAppDataLocalTemppip-install-x4tnp252lxml_934044ed969e46eeb5efa36af2247526srclxmlincludes/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\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2
C:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133binHostX86x64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 -IC:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133ATLMFCinclude -IC:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133include -IC:Program Files (x86)Windows KitsNETFXSDK4.8includeum -IC:Program Files (x86)Windows Kits10include10.0.19041.0ucrt -IC:Program Files (x86)Windows Kits10include10.0.19041.0shared -IC:Program Files (x86)Windows Kits10include10.0.19041.0um -IC:Program Files (x86)Windows Kits10include10.0.19041.0winrt -IC:Program Files (x86)Windows Kits10include10.0.19041.0cppwinrt /TcC:UsersVeluAppDataLocalTempxmlXPathInitfo8vzh85.c /FoUsersVeluAppDataLocalTempxmlXPathInitfo8vzh85.obj
xmlXPathInitfo8vzh85.c
C:UsersVeluAppDataLocalTempxmlXPathInitfo8vzh85.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\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:Python310python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Velu\AppData\Local\Temp\pip-install-x4tnp252\lxml_934044ed969e46eeb5efa36af2247526\setup.py'"'"'; __file__='"'"'C:\Users\Velu\AppData\Local\Temp\pip-install-x4tnp252\lxml_934044ed969e46eeb5efa36af2247526\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersVeluAppDataLocalTemppip-record-1q5zbo4zinstall-record.txt' --single-version-externally-managed --compile --install-headers 'C:Python310Includelxml' Check the logs for full command output.
Also tried this command still no luck. pip install lxml
I did find a few other StackOverflow answers try all but still no luck. most of the answers are old versions.
Does anyone have this issue? Any help would be appreciated.
Got it working by c:temp>pip install lxml-4.6.3-cp310-cp310-win_amd64.whl
Importantly we need to choose the right version based on your python version.
In my case I have installed 64-bit python 3.10.0
From here, download the lxml-4.6.3-cp310-cp310-win_amd64.whl http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml and copied the file to c:temp and then installed it with the above command.
Importantly you need to choose the correct file for your specific version cp310 here 310 reference to your python version.
This one solved my problem:
pip install cython
pip install fuzzyset