下面以python2.7 win32为例的安装步骤。

1 安装jdk,配置环境变量。最新的jdk就可以

2,将C:\Program Files\Java\jdk1.6.0_45\jre\bin\client加入Path路径

3  安装python的easy_install工具。

下载地址:http://pypi.python.org/pypi/setuptools 可以找到正确的版本进行下载。win7 32位可以下载setuptools-0.6c11.win32-py2.7.exe
将D:\Program Files\python2.7\scripts添加到环境变量中

4,安装JCC

easy_install http://pylucene-extra.apache-extras.org.codespot.com/files/JCC-2.14-py2.7-win32.egg

5  安装PyLucene

easy_install http://pylucene-extra.apache-extras.org.codespot.com/files/lucene-3.6.1-py2.7-win32.egg

6,验证
打开python shell
import lucene 成功就说明安装完成

 


posted on 2013-06-25 09:20  TianMG  阅读(928)  评论(0编辑  收藏  举报