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

有时我们使用下载python 自带的pip 安装一些工具包时,会报如下错误
Could not find a version that satisfies the requirement pymysql3 (from versions: ) No matching dist

找不到满意的版本,这时就是我们的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证书的认证

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

执行成功!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
猜你喜欢
  • 2021-07-29
  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
相关资源
相似解决方案