When it comes to installing a python – package in linux , most of the times you just need to do this.
sudo apt-get install python-package
or you could download an archive and go to the downloaded folder and do
python setup.py install
However I faced a lot of trouble while installing the python package Orange.I downloaded the nightly builds from this directory orange.biolab.si/download/orange-source-snapshot-hg-2012-09-24.zip and tried setup.py install. But it simply failed to install.
I also tried other stuff like going to the directory and doing
cd source make
It terminated with the following statement .
make: *** No targets specified and no makefile found. Stop.
After spending a bit of time googling , Google finally gave me an answer
1 . Install all dependencies
sudo apt-get install python-numpy sudo apt-get install python-qt4 sudo apt-get install python-dev
2 . Add the following lines to your /etc/apt/sources.list file . This file gives you the sources from which you can download the packages.
sudo gedit /etc/apt/sources.list deb http://orange.biolab.si/debian squeeze main deb-src http://orange.biolab.si/debian squeeze main
3.Then do this
sudo aptitude install-orange canvas
4.Then go to your python shell and do
Congrats.Orange is now successfully installed in your computer.
Edit : If this doesnt work , then try
sudo apt-get update sudo apt-get install orange-canvas