Ask Your Question
1

No module name "sage.all"

asked 2011-07-05 09:45:01 -0600

anonymous user

Anonymous

Hello to all, I'm trying to import sage in python using the "from sage.all import *" but I get the message "no module named sage.all" Im on mac os X 10.5 using idle as my python IDE. Is it possible to do that? Thanks in advance to all the answers. Any help will be sincerely appreciated. Cheers

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2011-07-05 10:55:37 -0600

Mike Hansen gravatar image

This is happening because IDLE is using your system's Python install rather than the one included with Sage. There isn't a trivial way to make this work. If you really want to use IDLE, then you need to install Tkinter into the Sage version of Python. Otherwise, you can use another text editor and the load and attach commands on the Sage command line for a similar effect.

edit flag offensive delete link more

Comments

Hey Mike, many thanks for your fast answer. May I ask you please how to install Tkinter into the Sage version of Python? I guess is not going to be a download-and-install thing, right? (I wished it was!) I don't want to do it until I'm not 100% sure of what I'm doing! Thanks once again. Cheers, Pablo

116iniesta gravatar image116iniesta ( 2011-07-05 11:10:56 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-07-05 09:45:01 -0600

Seen: 525 times

Last updated: Jul 05 '11