正在使用的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