我正在尝试使用sage -i plantri安装sage软件包(即plantri)。我收到消息: sage-run接收未知选项:-i。
我已经通过sage -sh打开了sage shell,并重复了相同的命令(sage -i plantri)。收到了同样的消息。我使用的是SageMath版本8.1,发布日期: 2017-12-07.
我尝试通过ubuntu包存储库使用sage安装,并使用手动安装(自行下载和编译sage )。如何在sage中安装其他软件包?
发布于 2020-01-02 00:04:59
sage -i命令仅适用于从源代码编译的Sage。
如果您已经从Ubuntu包存储库安装了Sage,并且也从源代码中编译了它,那么您路径中的sage可能就是Ubuntu包存储库中的Sage。
若要为从源代码编译的Sage安装plantri,请使用其完整路径或导航到其位置并使用./sage。如果您的Sage安装是在~/SageMath中,那么这两种解决方案如下所示:
任一
~/SageMath/sage -i plantri # tell that Sage to install plantri或
cd ~/SageMath # assuming this is where Sage is installed
./sage -i plantri # tell this Sage here to install plantrihttps://stackoverflow.com/questions/59522699
复制相似问题