我有一个带有 python 3.4.3 的虚拟环境。我想为这个环境安装 pylucene。
我怎样才能做到这一点?或者,如果我使用虚拟环境中的 python,我还能以某种方式运行 pylucene?
我在http://lucene.apache.org/pylucene/install.html上找不到任何关于 python 3 支持的信息 ,如果我按照说明操作,我会在 JCC 安装阶段遇到语法错误,因为代码是预计将与 python 2.x 一起运行。
我有一个带有 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)。
PyLucene 目前不支持 Python 3; 目前还不清楚是否会。