Skip to content

Instantly share code, notes, and snippets.

@avivzk2
Last active January 12, 2020 20:01
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avivzk2/10c88b37d280f873cf72a9a344755368 to your computer and use it in GitHub Desktop.
Save avivzk2/10c88b37d280f873cf72a9a344755368 to your computer and use it in GitHub Desktop.
PyLucene 7.5.0 Install Steps (Ubuntu 18.04)
# Tested on Ubuntu 18.04
# with Python 3.6
# Instructions: Run it line by line and follow the instructions in the comments (just one)
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python3 python3-dev python3-pip build-essential git
sudo -H pip3 install --upgrade pip
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install ant
cd
wget http://apache.spd.co.il/lucene/pylucene/pylucene-7.5.0-src.tar.gz
tar -xvf pylucene-7.5.0-src.tar.gz
cd pylucene-7.5.0/
pushd jcc
python3 setup.py build
sudo python3 setup.py install
popd
nano Makefile
# Uncomment the lines where it says 'Debian Jessie'
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment