Could not find a version that satisfies the requirement pymysql (from versions: ) No matching dist

有时我们使用下载python 自带的pip 安装一些工具包时,会报如下错误

《Could not find a version that satisfies the requirement pymysql (from versions: ) No matching dist》 微信图片_20180809101514.png

我的网有时候是不稳定的,这时我们用国内的镜像源来加速

pip install 这里填你需要的包名 -i http://pypi.douban.com/simple/ –trusted-host pypi.douban.com

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

执行成功!

不过每次这样手动输入会比较麻烦,建议每次换系统时先换成国内的镜像源,具体配置请参考

    原文作者:帅气的猪猪
    原文地址: https://www.jianshu.com/p/adaf1e031588
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞