Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Import sage python module


I've been trying to setup sagemath in order to use the sage python module by importing it in an other python project. I'm trying to get the same thing that i get when calling:

./sage -python

Is there a deployment script/python egg that install the module in dist-package? Is there a folder i can add to my python path?

So far I downloaded the "sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux.tar.lzma" version and unpacked it to "/opt/sage" while changing sure to update the "SAGE_ROOT" in /opt/sage.

I know there must be a way to do so because FAQ mentions it. Python 2.6 is already bundled with my machine so i guess all I have to do is add a folder to my python path?