Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ubuntu 18.04 apt install - ModuleNotFoundError: No module named 'sage'

I'm on Ubuntu 18.04.4 LTS.

% sudo aptitude install sage [...] % which sage /usr/bin/sage % sage --version SageMath version 8.1, Release Date: 2017-12-07 % 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' Conda provides my Python. I did not install sagemath using Conda - couldn't get it to run. I was assuming the platform package would work.

Is there a simple solution?

Cheers, --PG

```

Ubuntu 18.04 apt install - ModuleNotFoundError: No module named 'sage'

I'm on Ubuntu 18.04.4 LTS.

  % sudo aptitude install sage  
[...]
% which sage                    
/usr/bin/sage
 % sage --version 
SageMath version 8.1, Release Date: 2017-12-07
 

then


% sage          
% 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'
 

Conda provides my Python. I did not install sagemath using Conda - couldn't get it to run. I was assuming the platform package would work.

Is there a simple solution?

Cheers, --PG

```