Python (actually ‘setuptools’ package) cannot call Visual C (MSVC) to compile the project Execute command ‘make install’ under directory ‘PyLucene-6.5.0’ġ. *use command “make -j2” or “make -j4” to speed up Execute command ‘make’ under directory ‘PyLucene-6.5.0’ to build the whole project *if you create a Anaconda environment, then change PREFIX_PYTHON to the root directory of this environment. *if the path contains blank space, you need to replace it by dos path like ‘C:/PROGRA~1’ If encounter when executing ‘make install’, execute ‘make clean’ and then ‘make install’ again. *for PyLucene 8 installation, set NUM_FILES=10. #JCC=$(PYTHON) -m jcc._main_ –shared –arch x86_64Īnd then insert the following configuration (the following are just examples) #PREFIX_PYTHON=/Users/vajda/apache/pylucene/_install ![]() Open Anaconda prompt, e xecute command under directory JCCįor Linux user, edit line 71 of setup.py to specify your JAVA home (For example, ‘linux’: JAVAHOME) or simply set a JCC_JDK environment variable sharing same value with JAVA_HOME.įirst comment the default configuration (by adding ‘#’) like the following The previous PyLucene 7.x may encouter errors during the installation * For PyLucene 7 user, the latest Pylucene 7.7.1 is recommended because ![]() Download source code of PyLucene and extract, we obtain a directory named ‘PyLucene-6.5’ specify CYGWIN_HOME and add CYGWIN_HOME as an environment variable *choose “Debug” from “INSTALL” to “Unstall” or “Default” can save a lot of space.ġ. “Default” with some basic gcc/g tools, libraries and make/cmake utilities are already enough for PyLucene installation. *the space of all packages under “Devel” category are quite large (30~70 GB). When installing cygwin, choose “Devel” from “Default” to “Installed” Install cygwin 64 and set environment variablesĠ. specify ANT_HOME and add ANT_HOME as an environment variable Install Apache Ant and set environment variablesġ. Choose c related tools and all versions of SDK to install in the VS installer) Visual Studio 2015 (community version is enough.Install one of the following libraries subject to your environment:.add CLASSPATH as an environment variable.%JAVA_HOME%\lib %JAVA_HOME%\lib\tools.jar For Anaconda user, it is recommended to use Anaconda prompt. *If you use raw Python instead of Anaconda, then you may need to add environment variables such as PYTHONHOME and PYTHONPATH to ensure that python can be called on command-line prompt. *Anaconda is recommended since some people seems to have difficulties with raw Python Install JDK 1.8 (64 bit) and set environment variables Install python packages: numpy, scipy and gensim Install Python 2.7.x or Python 3.4 or Anaconda (Python 2.7.x or Python 3.4 ) Update 2019.03: add support for Pylucene 7.7.1 and clarify some steps Update 2019.10: add support for PyLucene 8.1.1
0 Comments
Leave a Reply. |