Pylucene Installation for Windows

提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档


Preface

Recently, I was going to try this tool: pylucene, but encountered some problems, thus make some records here for future reference.

1. Infrastractures’ Versions

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.

2.

Mainly follow this link to install and configure the lucene.

3. Step 2

After install and configure ANT, also you need to install and configure Ivy, here the installation guidline.

4.

Continue following untile step 5.

3. 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.


4. Step 6-8

Continue to follow…

5 Some issues during the utilization:

5.1

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.

6 Useful links

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值