提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档
Recently, I was going to try this tool: pylucene, but encountered some problems, thus make some records here for future reference.
python: 3.6
jdk: 1.8
Install pylucene 7.7.1
the versions above are the author’s setup, the author did not try other version combination. But at least, if the improve the jdk version, an error when executing the make command will appear. Y? I do not know.
Mainly follow this link to install and configure the lucene.
After install and configure ANT, also you need to install and configure Ivy, here the installation guidline.
Continue following untile step 5.
If you are using anaconda for your managing your python environment, remember to activate the specific python env (in which you are going use the pylucene) to install jcc module. Otherwise, the python will not find the jcc module when executing the make command.
Continue to follow…
Traceback (most recent call last):
File "../syntax.py", line 2, in <module>
import lucene
File "D:\Apps\Anaconda\envs\tse_2021_bases\lib\site-packages\lucene-7.7.1-py3.6-win-amd64.egg\lucene\__init__.py", line 3, in <module>
from . import _lucene
ImportError: DLL load failed: The specified module could not be found.
Solution: Degrade your jdk version.