python - 当我尝试在 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,但我无法解决这个问题。
解决方案
推荐阅读
- excel - 粘贴到不同工作表中的下一个空列
- java - 如何让休眠创建不是自动生成的 TIMESTAMP?
- reactjs - React 中的暂停等待功能实现
- apache-spark - kafkashaded.org.apache.kafka.common.errors.TimeoutException:60000 毫秒后更新元数据失败
- assembly - 仅在 x86 程序集中加载地址的低字节?
- python - 我无法将卫星图像作为 geopandas 的背景
- python - SQLAlchemy:在另一个事务中间运行单独的事务
- node.js - pm2 节点服务器上 dns.js 上的 DNS 查询
- git - 如何避免在特定提交时启动自动管道?
- go - 为什么这个 websocket 服务器不向连接的客户端广播?