你如何在Google Colaboratory中导入sagemath?

时间:2018-04-06 04:48:22

标签: python sage google-colaboratory

我可以举一个如何在Google Colaboratory中导入sagemath的示例吗?这不起作用:

!pip install sage
from sage.all import *

2 个答案:

答案 0 :(得分:5)

Sage不仅仅是一个pip - 可安装的软件包;目前还没有直接从Colab使用sage的方法。

(请注意,上面的pip install sage命令正在安装completely different package;还有sagemath package,但这并不包括鼠尾草的所有组件。 )

答案 1 :(得分:2)

在Google Colaboratory提供SageMath之前,有各种各样的 在线使用SageMath和/或在SageMath上进行协作的方法 工作表: