INSTALL.sh 572 Bytes
Newer Older
Gabriel Kirsten's avatar
Gabriel Kirsten committed
1 2 3
#!/bin/bash

echo "[PYNOVISAO INSTALLER] Installing PYNOVISAO... Please wait!"
Gabriel Kirsten's avatar
Gabriel Kirsten committed
4 5 6 7 8 9 10

#check if is root
if [ "$EUID" -ne 0 ]
  then echo "[PYNOVISAO INSTALLER] ERROR! Please run as root."
  exit
fi

Gabriel Kirsten's avatar
Gabriel Kirsten committed
11
sudo apt-get update
12
sudo apt-get -y install libfreetype6-dev tk tk-dev python-pip default-jre default-jdk weka weka-doc python-tk
Gabriel Kirsten's avatar
Gabriel Kirsten committed
13

Gabriel Kirsten's avatar
Gabriel Kirsten committed
14
echo "[PYNOVISAO INSTALLER] Installing libraries..."
15 16 17
pip install --upgrade pip
# Numpy must be installed before installing javabridge
pip install numpy
Gabriel Kirsten's avatar
Gabriel Kirsten committed
18
pip install -r requeriments.txt
Gabriel Kirsten's avatar
Gabriel Kirsten committed
19

Gabriel Kirsten's avatar
Gabriel Kirsten committed
20 21 22
echo
echo "[PYNOVISAO INSTALLER] Installation completed!"
echo