Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/298.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python pylucene安装生成文件错误_Python_Makefile_Pylucene - Fatal编程技术网

Python pylucene安装生成文件错误

Python pylucene安装生成文件错误,python,makefile,pylucene,Python,Makefile,Pylucene,当我构建pylucene环境时,我遇到了这个问题。 我不知道如何在Windows平台上配置它的makefile。 如果有任何关于在窗户上建造pylucene的例子,请帮助我 cmd显示: can not find tools.jar makefile213:recipe for target 'ivy' failed. make:***【ivy】error 1 以下是生成文件: VERSION=3.6.1-2 LUCENE_SVN_VER=HEAD LUCENE_VER=3.6.1 L

当我构建pylucene环境时,我遇到了这个问题。 我不知道如何在Windows平台上配置它的makefile。 如果有任何关于在窗户上建造pylucene的例子,请帮助我

cmd
显示:

can not find tools.jar
makefile213:recipe for target 'ivy' failed.
make:***【ivy】error 1    
以下是生成文件:

VERSION=3.6.1-2
LUCENE_SVN_VER=HEAD
LUCENE_VER=3.6.1
LUCENE_SVN=http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_6_1
PYLUCENE:=$(shell cd)
LUCENE_SRC=lucene-java-$(LUCENE_VER)
LUCENE=$(LUCENE_SRC)/lucene

# Windows   (Win32, Python 2.7, Java 1.6, ant 1.8.1, Java not on PATH)
SHELL=cmd.exe
PYLUCENE:=$(shell cd)
ANT=D:\ant183\bin\ant
JAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_01
PREFIX_PYTHON=D:\\Python27
PYTHON=$(PREFIX_PYTHON)\python.exe
JCC=$(PYTHON) -m jcc.__main__
NUM_FILES=3

$(LUCENE_JAR): $(LUCENE)
    cd $(LUCENE) && $(ANT) -Dversion=$(LUCENE_VER)
OS=$(shell uname)
BUILD_TEST:=$(PYLUCENE)\build\test

我在opensuse 13.2上安装时也遇到过类似的错误,解决方法是在尝试构建pylucene之前独立安装ivy。

你能解决这个问题吗?你有docker的说明吗?@Dreams问题已经8年了,答案已经5年了。我不确定它们在最新的pylucene和OS中的相关性。也许值得一看。