Ask Your Question

Anaconda - Sage conflict in .bashrc

asked 2018-10-09 23:53:54 +0200

ttshaw1 gravatar image

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?

edit retag flag offensive close merge delete


Please quote the respective lines which are causing the conflict (to make it easier for people to help you).

rburing gravatar imagerburing ( 2018-10-10 14:56:39 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-10-17 12:43:00 +0200

slelievre gravatar image

One option would be to "conda install" the SageMath package (called sage) from conda-forge.


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-10-09 23:53:54 +0200

Seen: 586 times

Last updated: Oct 17 '18