ImportError:无法在elasticsearch_dsl中导入名称关键字

时间:2019-02-10 21:43:33

标签: python python-2.7 elasticsearch

正在使用的Python是Python 2.7.6,而引起麻烦的代码是:

from elasticsearch_dsl import Keyword as _vioul_Keyword

我遵循了this的回答,但徒劳无功。

错误是:

Traceback (most recent call last):
  File "index_csv_file_in_es.py", line 9, in <module>
    from datatable import DataTable
  File "/home/ubuntu/datatable/__init__.py", line 44, in <module>
    from elasticsearch_dsl import Keyword as _vioul_Keyword
ImportError: cannot import name Keyword

0 个答案:

没有答案