下面以python2.7 win32为例的安装步骤。
1 安装jdk,配置环境变量。最新的jdk就可以
2,将C:Program FilesJavajdk1.6.0_45jreinclient加入Path路径
3 安装python的easy_install工具。
下载地址:http://pypi.python.org/pypi/setuptools 可以找到正确的版本进行下载。win7 32位可以下载setuptools-0.6c11.win32-py2.7.exe
将D:Program Filespython2.7scripts添加到环境变量中
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 成功就说明安装完成