Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

A solution is run Sage's Python (instead of your system's Python):

sage -python

Equivalently, you can run Python from Sage shell:

sage -sh
python

Then all Sage's environment variables are automatically set and from sage.all import var does not give any error.