Ask Your Question
0

Anaconda - Sage conflict in .bashrc

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

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

Comments

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 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

slelievre gravatar image

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

See:

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

Stats

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

Seen: 681 times

Last updated: Oct 17 '18