Python之pip安装失败----Could not find a version that satisfies the requirement xxxx(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证书的认证
OK,问题解决。