I've just installed sage with the command:
sudo apt-get install sagemath
But every time I try to start sage, following error show up:
$ sage
Traceback (most recent call last):
File "/usr/share/sagemath/bin/sage-ipython", line 7, in module
from sage.repl.interpreter import SageTerminalApp
ImportError: No module named repl.interpreter
Python 2.7 is the default on my PC. I tried to change it to python3 from "/usr/share/sagemath/bin/sage-ipython". But that didn't solve the problem. So, I removed that change. I have Ipython is installed and pip install sage
says that sage is already available in /home/anik/.local/lib/python2.7/site-packages
. Finally I've located interpreter.py file in /usr/lib/python2.7/dist-packages/sage/repl
. So it seems nothing is missing. So why ipython can't locate this file and launch sage? I'm out of my depth.