python使用pip安装包失败的解决方法

在使用pip安装时,报错:

ERROR: Could not find a version that satisfies the requirement xlrd (from versions: none)

ERROR: No matching distribution found for xlrd

解决办法:

1.先升级pip的命令:python -m pip install --upgrade pip

 2使用命令:pip install 包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

要快乐,要有梦想,要自信
原文地址:https://www.cnblogs.com/zhangjie198212/p/11792244.html