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('"'"'\r\n'"'"', '"'"'\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
重新 安装即可
|