我这边是换了一个镜像就好了,具体操作步骤如下
mkdir .pip
cd .pip
vi pip.conf
将以下内容放入文件pip.conf中
[global] timeout = 6000 index-url = http://pypi.douban.com/simple/ [install] use-mirrors = true mirrors = http://pypi.douban.com/simple/ trusted-host = pypi.douban.com
python -m pip install --upgrade pip(不要忘记更新一下)
pip --trusted-host pypi.python.org install 三方库
Yum 报错 curl#60 – “Peer’s Certificate has expired.”
Yum 安装提示
Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
或者
curl#60 – “Peer’s Certificate has expired.”
可能是由于服务器时间不正确导致https证书认证错误
更新服务器时间即可
例:
date -s “2017-4-25 12:00:00”
或者
ntpdate time.apple.com