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

转载于https://blog.csdn.net/csdn_am/article/details/79924744

有时我们使用下载python 自带的pip 安装一些工具包时,会报如下错误
在这里插入图片描述

找不到满意的版本,这时就是我们的pip可能需要升级了,所以使用

python -m pip install --upgrade pip

升级一下pip ,–upgrade 后面跟的是需要升级的库名

然后继续尝试发现还是不行,会报相同的错误,这时考虑到是网络的问题,我的网有时候是不稳定的,这时我们用国内的镜像源来加速

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

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

在这里插入图片描述

执行成功!

猜你喜欢

转载自blog.csdn.net/Wu000999/article/details/83421143