I'd like to use the Orange package for scientific analysis . Installation on x86_64 Ubuntu 12.04
, with Python 2.7.3
, went well, using sudo easy_install orange
. However, the package doesn't seem to be available for direct use:
11:30:43 leon@t410i:~$ python Python 2.7.3 (default, Apr 20 2012, 22:39:59) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import orange Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named orange >>>
However, importing the package while running Python from the appropriate dist-packages subdirectory works fine:
11:34:02 leon@t410i:~$ cd /usr/local/lib/python2.7/dist-packages/Orange-2.5a4-py2.7-linux-x86_64.egg/Orange 11:34:32 leon@t410i:/usr/local/lib/python2.7/dist-packages/Orange-2.5a4-py2.7-linux-x86_64.egg/Orange$ python Python 2.7.3 (default, Apr 20 2012, 22:39:59) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import orange >>> orange.__file__ 'orange.so' >>>
What is the problem? Other packages contained within dist-packages work fine when python's invoked from anywhere in the filesystem.