pylucene无法导入SImpleFSDirectory

时间:2018-06-08 07:17:28

标签: pylucene

我成功安装了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

0 个答案:

没有答案