| 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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.