以下为主要报错信息:
pipe -march=x86-64 -mtune=generic -O2 -pipe -march=x86-64 -mtune=generic -O2 -pipe -DCYTHON_CLINE_IN_TRACEBACK=0 -I/usr/include/libxml2 -Isrc -Isrc/lxml/includes -I/usr/include/python3.7m -c src/lxml/etree.c -o build/temp.msys-2.11.2-x86_64-3.7/src/lxml/etree.o -w
In file included from src/lxml/etree.c:97:0:
/usr/include/python3.7m/Python.h:39:10: 致命错误:crypt.h:No such file or directory
#include <crypt.h>
^~~~~~~~~
编译中断。
Compile failed: command 'x86_64-pc-msys-gcc' failed with exit status 1
cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInit180_fx8u.c -o tmp/xmlXPathInit180_fx8u.o
/tmp/xmlXPathInit180_fx8u.c:2:1: 警告:返回类型默认为‘int’ [-Wimplicit-int]
main (int argc, char **argv) {
^~~~
cc tmp/xmlXPathInit180_fx8u.o -L/usr/lib -lxml2 -o a.out.exe
error: command 'x86_64-pc-msys-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-bm_34mnt/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-hm2wlbog/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-bm_34mnt/lxml/
根据报错信息主要是由于第一个链接库未安装导致的出错:
根据报错信息主要是由于第一个链接库未安装导致的出错:
pacman -S libcrypt-devel
如果还是出错,也许你还有下面两个需要安装
pacman -S libxslt-devel
pacman -S libxml2-devel
更多问题可以留言。