我有一个 python 3.4.3 的虚拟环境。我想为此环境安装pylucene。
我该怎么做?或者,如果我在虚拟环境中使用 python,我还能以某种方式运行 pylucene 吗?
我在 http://lucene.apache.org/pylucene/install.html 上找不到任何关于 python 3 支持的信息 如果我按照说明进行操作,我会在 JCC 安装阶段遇到语法错误,因为代码预计将使用 python 2.x 运行。
最佳答案
更新答案:PyLucene 6.5.0 现已正式移植到 python3。 http://lucene.apache.org/pylucene/
我已经将 jcc
和 pylucene
移植到 python3
首先从这里安装 jcc
:
https://github.com/rudimeier/jcc
然后 pylucene
来自这里:
https://github.com/rudimeier/pylucene
pylucene 存储库在不同的分支中包含 3 个移植版本(3.x、4.x 和 6.x)。
关于python - pylucene 与 python 3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34170299/