D
D
d3coy_002019-10-27 15:09:42
Python
d3coy_00, 2019-10-27 15:09:42

Trouble installing lxml to python3.8.0 on windows OS?

Hi, when installing the lxml library, I get an error like:


copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstra
ct_expand.xsl -> build\lib.win32-3.8\lxml\isoschematron\resources\xsl\iso-schema
tron-xslt1
copying src\lxml\ isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_i
nclude.xsl -> build\lib.win32-3.8\lxml\isoschematron\resources\xsl\iso-schematro
n-xslt1
copying src\lxml\isoschematron\resources\xsl \iso-schematron-xslt1\iso_schema
tron_message.xsl -> build\lib.win32-3.8\lxml\isoschematron\resources\xsl\iso-sch
ematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron- xslt1\iso_schema
tron_skeleton_for_xslt1.xsl -> build\lib.win32-3.8\lxml\isoschematron\resources\
xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_f
or_xslt1.xsl -> build\lib.win32-3.8\lxml\isoschematron\resources\xsl\iso-schematron-
ron -xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt
-> build\lib.win32-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
running build_ext
building 'lxml .etree' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual
C++ Build Tools": https://visualstudio.microsoft.com/downloads/
--------------------------------- -------------
ERROR: Command errored out with exit status 1: 'C:\Users\D3coy\AppData\Local\Pro
grams\Python\Python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sy
s.argv[0] = '"'"'C:\\Users\\D3coy\\AppData\\Local\\Temp\\pip-install-26cju2yb\\l
xml\\setup.py'"'" '; __file__='"'"'C:\\Users\\D3coy\\AppData\\Local\\Temp\\pip-in
stall-26cju2yb\\lxml\\setup.py'"'"';f=getattr( tokenize, '"'"'open'"'"', open)(__
file__);code=f.read().replace('"'"'\r\n'"'"', '"'" '\n'"'"');f.close();exec(compi
le(code, __file__, '"'"'exec'"'"'))' install --record 'C:

It is clear from the text of the error that VS build tools are missing, I have already installed VS 2015 and build tools 14.0 separately. Same error after installation. How to solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-10-27
@d3coy_00

You can just download the precompiled wheel from here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question