文章来源地址https://www.toymoban.com/news/detail-557105.html
使用pip安装包时提示报错如下:
ERROR: Could not find a version that satisfies the requirement <package> (from versions: none)
ERROR: No matching distribution found for <package>
大多数是网络问题,替换使用国内的镜像来源加速即可。
打开cmd
输入
pip install <package> -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
按回车执行命令后,安装成功。
例如:
文章来源:https://www.toymoban.com/news/detail-557105.html
到了这里,关于python报错:ERROR: No matching distribution found for的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!