You are using pip version 8.1.2, however version 23.0 is available.You should consider upgrading via the 'pip install --upgrade pip' command.
今天使用python2安装es模块时报错:
原因是pip(模块管理工具)版本过低,需先升级pip,再进行安装
先替换pip的镜像,默认镜像拉取慢,还可能会失败
cd ~;mkdir .pip;touch .pip/pip.conf cat >> ./.pip/pip.conf <<'EOF' [global] index-url = https://mirrors.aliyun.com/pypi/simple/ [install] trusted-host=mirrors.aliyun.com EOF
再进行升级
python -m pip install --upgrade pip==20.3.4
最后安装es
python -m pip install elasticsearch