9

CentOS7 python2 安装 elasticsearch 模块

 1 year ago
source link: https://www.liurongxing.com/centos7-python2-install-elasticsearch-module.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

CentOS7 python2 安装 elasticsearch 模块

2023-12-08 154点热度 0人点赞 0条评论

最近工作中在拆分ES大索引,有使用到一个python脚本,引用了如下的库,记录一下CentOS7中如何只使用yum安装如下的库。

from elasticsearch import Elasticsearch
from dateutil.parser import *
from dateutil.relativedelta import relativedelta

from elasticsearch import Elasticsearch
ImportError: No module named elasticsearch

直接帖出安装命令来的快一些。

yum install python-pip
python -m pip install --upgrade pip==20.2.4
python -m pip install --upgrade pip
pip install setuptools -U
pip install elasticsearch
yum install python-dateutil

</div


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK