CentOS7 python2 安装 elasticsearch 模块
💡
原文中文,约600字,阅读约需2分钟。
📝
内容提要
最近工作中在拆分ES大索引,有使用到一个python脚本,引用了elasticsearch和dateutil库。在CentOS7中,使用yum安装python-pip和elasticsearch库,解决了ImportError报错问题。
🎯
关键要点
- 在CentOS7中使用yum安装elasticsearch模块。
- 工作中需要拆分ES大索引,使用了一个python脚本。
- 脚本引用了elasticsearch和dateutil库。
- 遇到ImportError报错,提示没有elasticsearch模块。
- 安装命令包括:yum install python-pip,pip安装elasticsearch和dateutil库。
🏷️
标签
➡️