栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

python3 安装 libxml2

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

python3 安装 libxml2

command: pip install libxml2-python3

errors:

Collecting libxml2-python3
  Using cached libxml2-python3-2.9.5.tar.gz (216 kB)
  Preparing metadata (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /root/nas_env/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nbhozwjb/libxml2-python3_8b4299bc0b3e4a9e8394247cbf279f45/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nbhozwjb/libxml2-python3_8b4299bc0b3e4a9e8394247cbf279f45/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-lbo5ien2
       cwd: /tmp/pip-install-nbhozwjb/libxml2-python3_8b4299bc0b3e4a9e8394247cbf279f45/
  Complete output (1 lines):
  failed to find headers for libxml2: update includes_dir
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/41/97/a2ecf6c5b291799dbd40b3d041d89b0ecdb1b43c8c2503e27991325851cd/libxml2-python3-2.9.5.tar.gz#sha256=51a6f863b639ce89cdfed32d58d9d37066301c373247f1c370b10d7edebe5e65 (from https://pypi.org/simple/libxml2-python3/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement libxml2-python3 (from versions: 2.9.5)
ERROR: No matching distribution found for libxml2-python3

因为找不到libxml2头文件

解决办法: yum install libxml2-devel

重新 安装即可

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/770023.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号