1 | initial version |
The line from sage.all import *
will work only on a Python which has the Sage library installed.
Depending on how you installed Sage, this might be your system Python or a different one.
The "sage" package on the Python package index (PyPI) is not SageMath.
As far as I know it is not related to SageMath at all.
There is also a "sagemath" package on PyPI but it only serves to check whether SageMath is installed, and does not provide SageMath.
So far, Sage is not available on PyPI. Making that happen is a goal, tracked at:
If you have SageMath installed, use your Python script with Sage's Python instead
of your system Python, and then importing (from) sage
or sage.all
will work.
2 | No.2 Revision |
The line from sage.all import *
will work only on a Python which has the Sage library installed.
Depending on how you installed Sage, this might be your system Python or a different one.
The "sage" package on the Python package index (PyPI) is not SageMath.
As far as I know it is not related to SageMath at all.
There is also a "sagemath" package on PyPI but it only serves to check whether SageMath is installed, and does not provide SageMath.
So far, Sage is not available on PyPI. Making that happen is a goal, tracked at:
If you have SageMath installed, use your Python script with Sage's Python instead
of your system Python, and then importing (from) sage
or sage.all
will work.
That is, under Windows, instead of running from the Windows command prompt
$ python umphy.py
open the "Sage shell" shortcut that was placed on your desktop by the Sage-Windows installer and in there, run
$ python umphy.py