Difference between revisions of "Orange: Instalasi"

From OnnoWiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
  brew install python3 qt
 
  brew install python3 qt
  
  cd /usr/local/src
+
  # cd /usr/local/src
  pip3 install virtualenv
+
  # pip3 install virtualenv
  virtualenv -p python3 orange3env
+
  # virtualenv -p python3 orange3env
  source orange3env/bin/activate
+
  # source orange3env/bin/activate
  
 
dalam virtual environment
 
dalam virtual environment
  
  apt install python-sip-dev python3-sip-dev
+
  apt install python-sip-dev python3-sip-dev python3-sip
  wget https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.3/sip-4.19.3.tar.gz
+
apt install qt4-default
  tar zxvf sip-4.19.3.tar.gz
+
apt install python-pip
  cd sip-4.19.3
+
 
  python configure.py
+
sudo su
  make -j4
+
sudo apt -y install build-essential libssl-dev libffi-dev subversion python-dev python3-dev  
  make install
+
  sudo apt -y install python3-pyqt5 python3-pyqt5.qtsvg python3-pyqt5.qtwebkit
cd ..
+
sudo apt remove python-pip python3-pip
 +
cd /usr/local/src
 +
wget https://bootstrap.pypa.io/get-pip.py
 +
  python get-pip.py
 +
  python3 get-pip.py
 +
  apt -y install python-numpy python-twython
 +
  chmod -Rf 777 /usr/local/lib/
 +
  chmod -Rf 777 /usr/local/bin/
  
apt install qt4-default
+
pastikan versi python > 3.4
wget http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.12.1/PyQt4_gpl_x11-4.12.1.tar.gz
 
tar zxvf PyQt4_gpl_x11-4.12.1.tar.gz
 
cd PyQt4_gpl_x11-4.12.1
 
python configure.py
 
make -j4
 
make install
 
cd ..
 
  
 +
python --version
  
 +
cd /usr/local/src
 +
git clone https://github.com/biolab/orange3
 +
cd orange3
 +
pip install numpy
 +
pip install -r requirements.txt
 +
pip install -r requirements-gui.txt
 +
python setup.py develop
 +
python -m Orange.canvas
  
 
==Pip==
 
==Pip==

Latest revision as of 12:59, 30 October 2017

Instalasi orange

sudo su
apt install ruby linuxbrew-wrapper
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap homebrew/science
brew install python3 qt
# cd /usr/local/src
# pip3 install virtualenv
# virtualenv -p python3 orange3env
# source orange3env/bin/activate

dalam virtual environment

apt install python-sip-dev python3-sip-dev python3-sip
apt install qt4-default
apt install python-pip
sudo su
sudo apt -y install build-essential libssl-dev libffi-dev subversion python-dev python3-dev 
sudo apt -y install python3-pyqt5 python3-pyqt5.qtsvg python3-pyqt5.qtwebkit
sudo apt remove python-pip python3-pip
cd /usr/local/src
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
python3 get-pip.py
apt -y install python-numpy python-twython
chmod -Rf 777 /usr/local/lib/
chmod -Rf 777 /usr/local/bin/

pastikan versi python > 3.4

python --version
cd /usr/local/src
git clone https://github.com/biolab/orange3
cd orange3
pip install numpy
pip install -r requirements.txt
pip install -r requirements-gui.txt
python setup.py develop
python -m Orange.canvas

Pip

Teknik ini OK untuk Ubuntu 16.04. Teknik ini membutuhkan python3.

Orange juga bisa dipasang dari paket Python. Anda mungkin memerlukan paket sistem tambahan yang disediakan oleh distribusi anda.

sudo su
sudo apt -y install build-essential libssl-dev libffi-dev subversion python-dev python3-dev 
sudo apt -y install python3-pyqt5 python3-pyqt5.qtsvg python3-pyqt5.qtwebkit
sudo apt remove python-pip python3-pip
cd /usr/local/src
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
python3 get-pip.py
apt -y install python-numpy python-twython
chmod -Rf 777 /usr/local/lib/
chmod -Rf 777 /usr/local/bin/
pip3 install orange3

Menjalankan orange

orange-canvas

Anaconda

Jika anda menggunakan python yang disediakan oleh distribusi Anaconda, anda sudah hampir siap untuk menggunakannya. Tambahkan conda-forge ke daftar saluran yang bisa anda pasang dari paket

conda config --add channels conda-forge

dan jalankan

conda install orange3
conda install -c defaults pyqt=5 qt

perintah kedua untuk menginstalasi qt dan pyqt dari default channel, karena kedua-nya diberikan oleh conda-forge yang tidak termasuk dalam webkit


Installing from source

Clone our repository from GitHub or download the source code tarball. Then follow the instructions in README.md

To run Orange Canvas run

python -m Orange.canvas

Previous version

Orange 2.7 is still available.

Installing add-ons

Additional features can be added to Orange by installing add-ons. You can find add-on manager in Options menu.