Could not find a version that satisfies the requirement lxml解决方法

时间:2020-02-19 18:02:07   收藏:0   阅读:452

今天ytkah在安装lxml时提示错误ERROR: Could not find a version that satisfies the requirement lxml (from versions: none),ERROR: No matching distribution found for lxml,升级一下pip试试

python -m pip install --upgrade pip

  再次安装lxml还是错误,考虑到是网络不稳定的问题,这时我们用国内的镜像源来加速

pip install 包名-i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

  --trusted-host pypi.douban.com 这是为了获得ssl证书的认证

技术分享图片

执行成功!

不过每次这样手动输入会比较麻烦,建议每次换系统时先换成国内的镜像源,具体配置请参考https://blog.csdn.net/u012592062/article/details/51966649

 

原文:https://www.cnblogs.com/ytkah/p/12332265.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!