Friday, February 4, 2011

Install of Orange (Python) in Ubuntu

- we follow the direction: 
In the comand line: 

$ sudo apt-get install orange-svn python-orange-svn

Since Orange will require several packages, such as numpy, using this it can automaticlally install the other things that you lack of. 

However, it install the site-pack to "/usr/lib/python2.5"
wired --  not for sure: why we have python2.5 in the /usr/lib
which is not our default python-- "/usr/lib/python2.6"

So when using the py2.6, we have to in the ph-shell:

import sys
sys.path.append('/usr/lib/python2.5/site-packages/orange')


Now, we can:
import orange


Some useful links:

http://orange.biolab.si/svn/orange/trunk/orange/doc/INSTALL.linux.txt
http://www.slideshare.net/trygub/python-and-machine-learning-4968985

Additional notes:
By following this:
http://www.winehq.org/download/deb

we can "add" the software from open the "software center", use the "add button"
input two links:
deb http://orange.biolab.si/debian lenny main
deb-src http://orange.biolab.si/debian lenny main
[Ref] http://orange.biolab.si/nightly_builds.html

then implement the above commands,  -- shouldn't necessary, but another way.


No comments:

Post a Comment