Python 如何修复在Windows 7上尝试安装libxml2时的错误
我在Windows 7上使用Python 3.8安装时,使用以下命令:Python 如何修复在Windows 7上尝试安装libxml2时的错误,python,python-3.x,Python,Python 3.x,我在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
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,但我无法修复此问题。这是否回答了您的问题?真的没有bc那家伙在用fedora,sudo,yum或者apt,不要在我的windows上工作。