我在Windows 7上使用Python 3.8时,使用以下命令安装:
Collecting libxml2-python3
Using cached https://files.pythonhosted.org/packages/41/97/a2ecf6c5b291799dbd4
0b3d041d89b0ecdb1b43c8c2503e27991325851cd/libxml2-python3-2.9.5.tar.gz
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Ivoyko\AppData\Local\Programs\Python\Python38-32\python.
exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ivoyko\
\AppData\\Local\\Temp\\pip-install-d_yll6qf\\libxml2-python3\\setup.py'"'"'; __f
ile__='"'"'C:\\Users\\Ivoyko\\AppData\\Local\\Temp\\pip-install-d_yll6qf\\libxml
2-python3\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);cod
e=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __
file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Ivoyko\AppData\Local\Tem
p\pip-install-d_yll6qf\libxml2-python3\pip-egg-info'
cwd: C:\Users\Ivoyko\AppData\Local\Temp\pip-install-d_yll6qf\libxml2-py
thon3\
Complete output (1 lines):
failed to find headers for libxml2: update includes_dir
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check th
e logs for full command output.
我从Visual Studio 2019中以VS14安装了一些东西,但我无法修复它。