Error while installing sage

67 views
Skip to first unread message

Sushovan Mondal

unread,
Apr 25, 2021, 12:26:16 PM4/25/21
to sage-support
Dear All,

I am trying to install sage math on my laptop which has UBUNTU 18.04.5 LTS as the operating system. I have installed sage and now I want to run it. But I am getting the following results.


mondals@smondal:~$ sudo apt-get install sagemath
Reading package lists... Done
Building dependency tree       
Reading state information... Done
sagemath is already the newest version (8.1-7ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

mondals@smondal:~$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.1, Release Date: 2017-12-07                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
Traceback (most recent call last):
  File "/usr/share/sagemath/bin/sage-ipython", line 7, in <module>
    from sage.repl.interpreter import SageTerminalApp
ModuleNotFoundError: No module named 'sage'

Please help me with how to solve this problem.

Thanking you,

Regards,
Sushovan Mondal

slelievre

unread,
Apr 25, 2021, 6:08:52 PM4/25/21
to sage-support
Ubuntu 18.04 is from April 2018, and installing SageMath
with "apt-get install" you get the version of SageMath
packaged at the time: SageMath 8.1, released 2017-12.

Sage has made tremendous progress since 8.1,
including moving to Python 3 (instead of Python 2
which has now reached end of support).

I would recommend installing SageMath 9.2 or later.
This can be done using one of the following methods:

- download a binary for Ubuntu 18.04 from
  
- install with Conda

- build from source

- Use Docker or Podman
  (can someone point to a relevant webpage?)

Please ask any follow-up question here.   --Samuel

Vincent Delecroix

unread,
Apr 26, 2021, 2:33:09 AM4/26/21
to sage-s...@googlegroups.com
This might have an answer here

https://ask.sagemath.org/question/51555/ubuntu-1804-apt-install-modulenotfounderror-no-module-named-sage/

Le 25/04/2021 à 18:25, Sushovan Mondal a écrit :
> Dear All,
>
> I am trying to install sage math on my laptop which has UBUNTU 18.04.5 LTS
> as the operating system. I have installed sage and now I want to run it.
> But I am getting the following results.
>
>
>
>
>
>
>
>
> *mondals@smondal:~$ sudo apt-get install sagemathReading package lists...
> DoneBuilding dependency tree Reading state information...
> Donesagemath is already the newest version (8.1-7ubuntu1).0 upgraded, 0
> newly installed, 0 to remove and 0 not upgraded.*
>
>
>
>
>
>
>
>
>
>
>
> *mondals@smondal:~$
> sage┌────────────────────────────────────────────────────────────────────┐│
> SageMath version 8.1, Release Date: 2017-12-07 ││ Type
> "notebook()" for the browser-based notebook interface. ││ Type
> "help()" for help.
> │└────────────────────────────────────────────────────────────────────┘Traceback
> (most recent call last): File "/usr/share/sagemath/bin/sage-ipython", line
> 7, in <module> from sage.repl.interpreter import
> SageTerminalAppModuleNotFoundError: No module named 'sage'*
Reply all
Reply to author
Forward
0 new messages