首页 > 解决方案 > 当我尝试在 Windows 7 上安装 libxml2 时如何修复我的错误

问题描述

当我使用命令安装时,我在使用 Python 3.8 的 Windows 7 上显示如下:

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,但我无法解决这个问题。

标签: pythonpython-3.x

解决方案


推荐阅读