python报错:ERROR: No matching distribution found for

使用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

按回车执行命令后,安装成功。

例如:

猜你喜欢

转载自blog.csdn.net/weixin_54446335/article/details/130609435