Orange, a Free Software released under the GNU General Public License, is a modular machine learning and data mining application developed at the Bioinformatics Laboratory, Faculty of Computer and Information Science, University of Ljubljana, Slovenia.
It is one of many Python applications that expert and aspiring data scientists may use to mess with data. Orange is cross-platform, but because there are no installation binaries for GNU/Linux distributions, installing it on your favorite distribution entails building it from source, which you can download from here.
The rest of this article shows how to build and install it from the downloaded source code. All the steps will be done from the command-line, so the first step is to start a shell terminal.
1. Change (cd)to the directory you downloaded the source code, which is delivered as a zip file, and unzip it by typing
<strong>unzip orange-source-snapshot-hg-<date>.zip</strong>. The source is a nightly-build, so the date in the name of the file will not be the same for everybody.
2. Install dependencies: The build process requires GCC, Python and numpy development headers to be installed on the target machine. On a default installation of Ubuntu 13.04, Python (version 2.7) and GCC should already be installed, but not numpy (Numerical Python), so you will it by typing
<strong>sudo apt-get install python-numpy</strong>.
But that’s not all. You’ll also have to install g++, build-essential, and python2.7-dev packages. Making sure all are installed will save you from dealing with errors during the build and installation process. For example, during the build stage, you will get error trying to exec ‘cc1plus’: execvp: No such file or directory if g++ is not installed, and error Python.h: No such file or directory if python2.7-dev is not installed.
The Python development package you installed should match the version of Python you have installed on the machine. Replace 2.7 with the version of Python you are using. For example python3.3-dev or python3.2-dev. In Ubuntu 13.04, it is Python 2.7. Once all the required packages have been installed, you are ready to roll.
2. Build from Source: To generate an installable package for Orange, type
<strong>python setup.py build</strong>. After the process has completed successfully, type
<strong>sudo python setup.py install</strong>. That last command will generate a script called orange-canvas, which will be used to start Orange from the command-line.
3. Start Orange Canvas: If the last command in step two completed without errors, you may launch Orange by typing orange-canvas. However, Orange will fail to start, with the error message show in this image. The solution to that error is to install python-setuptools by typing
<strong>sudo apt-get install python-setuptools</strong>. Then rerun orange-canvas.
Have fun playing with Orange.