直接pip install lxml一直报错:
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
sudo pip install lxml --default-timeout=100 future
安装成功!
参考:点击
京公网安备 11010502049817号