ERROR: Could not find a version that satisfies the requirement lxml ERROR: No matching distribution

ERROR: Could not find a version that satisfies the requirement lxml ERROR: No matching distribution found for lxml

在安装加载lxml库时,出现ERROR: Could not find a version that satisfies the requirement lxml
ERROR: No matching distribution found for lxml 这样的报错。
ERROR: Could not find a version that satisfies the requirement lxml ERROR: No matching distribution_第1张图片
错误原因:
错误:无法找到满足要求lxml的版本
错误:没有找到匹配的lxml分布
也就是说,可能是网络不稳定,或者在那个网里没有那个库
解决方案:
这时我们用国内的镜像源来加速:(终端输入命令)
pip install lxml -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
ERROR: Could not find a version that satisfies the requirement lxml ERROR: No matching distribution_第2张图片

成功啦

你可能感兴趣的:(miniconda,install,python,pip)