完美解决Could not find a version that satisfies the requirement xxx (from versions: )
今天在使用pip安装模块的时候,发现无法使用。报错信息:Could not find a version that satisfies the requirement xxxxxxx(from versions: )No matching distribution found for xxxxx
网上查询了下,可能是网络的问题,所以,这里需要用国内的镜像源来下载
pip install selenium -i http://pypi.douban.com/simple/ —trusted-host pypi.douban.com
其中—trusted-host pypi.douban.com 的作用是获得ssl证书的认证
使用python 时会遇到缺少python 库的问题,提示 No module named ’ 安装包名字’ 问题
在解决安装包问题中在网上找了很多的方法,方法很多各种各样,对一部分人有用,对一部分没有用,下面我对这些方法做了整理,希望可以节省大家查问题解决问题的时间。
这时候根据No module named ’ 安装包名字’ 百度查解决方法,方法有很多,比如
解决方法一:pip install 安装包名字
解决方方法二:python -m pip install 安装包名字
解决方方法三:pip —trusted-host pypi.python.org install 安装包名字
这时候部分人会解决,但是还是会出现新的报错:
Retrying (
还没有评论,来说两句吧...