问题描述
我对如何在 python 中使用 sagemath 感到困惑,我只知道你不能做 pip install sagemath
https://stackoverflow.com/questions/50039916/no-module-named-sage-all?r=SearchResults&s=2|57.7562
我能找到的只是说使用 from sage.all import *
的文章,这会产生错误 ModuleNotFoundError: No module named 'sage.all'
非常感谢您的帮助,谢谢!
解决方法
根据 comments in the other question,使用 conda
(不是 pip)安装 sagemath 并使用相同的代码:
from sage.all import *