elasticsearch curator 安裝後下指令錯誤

安裝了elasticsearch curator 套件

下指令時出現錯誤

python /usr/lib/python2.7/site-packages/curator/curator.py close --timestring %Y.%m.%d --prefix logstash --older-than 14

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/curator/curator.py", line 2, in <module>
from .cli import cli
ValueError: Attempted relative import in non-package

請高手協助解決
已邀请:

要回复问题请先登录注册