问题
直接pip install lxml
一直报错:
根据报错内容搜索解决办法:
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
解决
最终解决办法:sudo pip install lxml --default-timeout=100 future
安装成功!
参考:点击