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

 

posted @ 2019-11-04 15:22  杰的小恒星  阅读(4163)  评论(0编辑  收藏  举报