Ask Your Question
0

Anaconda - Sage conflict in .bashrc

asked 6 years ago

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?

Preview: (hide)

Comments

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

rburing gravatar imagerburing ( 6 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 6 years ago

slelievre gravatar image

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

See:

Preview: (hide)
link

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: 6 years ago

Seen: 694 times

Last updated: Oct 17 '18