我成功安装了lucene,当我import lucene
然而,当我输入: 进口lucene 来自lucene的导入SimpleFSDirectory 我收到一个错误: Traceback(最近一次调用最后一次): 文件"",第1行,in ImportError:无法导入名称SimpleFSDirectory 它与PyLucene : ImportError: cannot import name SimpleFSDirectory
相同所以我改变了我的代码: 来自org.apache.lucene.store导入SimpleFSDirectory
但我又收到了一个错误: ImportError:没有名为org.apache.lucene.store的模块
如何修复此错误?
我的配置是: python2.7.12 pylucene3.6.2 Ubuntu 16.04