On May 29, 2:41 pm, Kurda Yon <kurda...@yahoo.com> wrote: > But because of some reason it does not work. I create a file called > "test.py". I put there just one line "from sage.all import *" and then > I execute this code as a Python program "python test.py". Then I get > the following: > File "test.py", line 1, in <module> > from sage.all import * > ImportError: No module named sage.all
Try using "./sage -python test.py". Sage has its own Python interpreter (which can "see" the rest of Sage as a python library) -- what you typed uses the system Python, which doesn't know about Sage. Or you can skip the "-python" -- it's clever enough to know that is meant when it's given a .py file David --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---