安装
安装方式有pip及yum,本人采用pip安装。
首先确认系统是否已经有pip,没有的话按以下方式安装
[root@tmaster3 src]# wget https://bootstrap.pypa.io/get-pip.py
--2020-09-11 10:26:58-- https://bootstrap.pypa.io/get-pip.py
正在解析主机 bootstrap.pypa.io (bootstrap.pypa.io)... 151.101.228.175, 2a04:4e42:1a::175
正在连接 bootstrap.pypa.io (bootstrap.pypa.io)|151.101.228.175|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:1885433 (1.8M) [text/x-python]
正在保存至: “get-pip.py”
100%[===================================================================================================================================================================================================>] 1,885,433 1.57MB/s 用时 1.1s
2020-09-11 10:27:00 (1.57 MB/s) - 已保存 “get-pip.py” [1885433/1885433])
##安装
[root@tmaster3 src]# python get-pip.py
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting pip
Downloading pip-20.2.3-py2.py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 489 kB/s
Collecting setuptools
Downloading setuptools-44.1.1-py2.py3-none-any.whl (583 kB)
|████████████████████████████████| 583 kB 2.0 MB/s
Collecting wheel
Downloading wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Installing collected packages: pip, setuptools, wheel
Successfully installed pip-20.2.3 setuptools-44.1.1 wheel-0.35.1
确认安装情况
[root@tmaster3 src]# pip --version
pip 20.2.3 from /usr/lib/python2.7/site-packages/pip (python 2.7)
安装elasticsearch-curator
[root@tmaster3 ~]# pip install elas

本文记录了通过pip在Python 2.7环境下安装elasticsearch-curator时遇到的问题及解决办法,包括因botocore版本问题导致的安装错误,以及如何配置curator来删除和强合并Elasticsearch索引。
最低0.47元/天 解锁文章
1333

被折叠的 条评论
为什么被折叠?



