Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Anaconda - Sage conflict in .bashrc

I can't get Anaconda and Sage to play nicely with each other.

This is on a new install of Linux Mint 19. I installed sage from the repository and everything working fine. Then I installed Anaconda as directed on Anaconda's Linux installation instructions , including having the installer add to the PATH in ~/.bashrc. This broke sage. When I try to run it now, I get the error

Traceback (most recent call last):

File " /usr/share/sagemath/bin/sage-ipython", line 6, in <module>

from sage.repl.interpreter import SageTerminalApp

ImportError: No module named 'sage'

When I comment out the lines Anaconda added to my .bashrc file where it's adding to the PATH, Sage works again, but Anaconda is broken. What's causing this problem? How can I get the two to work at the same time?