解决方案:

apk add --update --no-cache g++ gcc libxslt-dev python3-dev openssl-dev

apk add --no-cache gcc musl-dev libxslt-dev

 

具体报错如下:

Collecting lxml
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/03/a8/73d795778143be51d8b86750b371b3efcd7139987f71618ad9f4b8b65543/lxml-4.5.1.tar.gz
Complete output from command python setup.py egg_info:
Building lxml version 4.5.1.
Building without Cython.
Error: Please make sure the libxml2 and libxslt development packages are installed.

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-29mwfpit/lxml/
You are using pip version 18.1, however version 20.2b1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

标签: none

分类: 所有文章,错题本

添加新评论