你如何在Google Colaboratory中导入sagemath?

Gio*_*hal 4 python sage google-colaboratory

我可以举例说明如何在Google Colaboratory中导入sagemath吗?这不起作用:

!pip install sage
from sage.all import *
Run Code Online (Sandbox Code Playgroud)

Cra*_*tro 5

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

(请注意,pip install sage上面的命令是安装一个完全不同的包 ;还有一个sagemath包,但它不包括sage的所有组件.)


Sam*_*vre 5

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