pylucene with python 3
Asked Answered
M

2

5

I have a virtual environment with python 3.4.3. I want to install pylucene for this environment.

How can I do that? Or can I somehow still run pylucene if I use the python from my virtual environment?

I couldn't find any info on python 3 support on http://lucene.apache.org/pylucene/install.html and if I follow the instructions, I'm getting syntax error on the phase of JCC installation as the code is expected to be run with python 2.x.

Muricate answered 9/12, 2015 at 3:36 Comment(0)
M
5

Updated answer: PyLucene 6.5.0 is now officially ported to python3. http://lucene.apache.org/pylucene/

I have ported jcc and pylucene to python3

First install jcc from here: https://github.com/rudimeier/jcc

Then pylucene from here: https://github.com/rudimeier/pylucene

The pylucene repository contains 3 ported versions (3.x, 4.x and 6.x) in different branches.

Microgamete answered 14/3, 2017 at 20:3 Comment(1)
@ziyuang upstream has now officially released PyLucene 6.5.0 with python3 support. lucene.apache.org/pyluceneMicrogamete
I
3

PyLucene doesn't currently support Python 3; it's unclear if it will.

Immolate answered 9/12, 2015 at 16:11 Comment(1)
thanks @Coady... I'm now thinking how can I use lucene in my virtual environment with python 3Muricate

© 2022 - 2024 — McMap. All rights reserved.