Ask Your Question

daranha's profile - activity

2020-03-18 02:53:06 +0100 received badge  Famous Question (source)
2019-05-28 09:25:20 +0100 received badge  Notable Question (source)
2019-02-17 09:26:12 +0100 received badge  Popular Question (source)
2018-03-05 19:16:45 +0100 commented answer SAGE 8.1, cannot import python modules from notebook

Thanks for your answer, though I'm still struggling. - 'which sage' command didn't provide an answer. - three locations are searched before '/usr/local/bin': '/home/myself/bin' , '/home/myself/.local/bin', and /usr/local/sbin/' - I don't understand your third point. - It cannot create a symbolic link because it already exists.

2018-03-05 18:59:53 +0100 received badge  Supporter (source)
2018-03-05 18:59:47 +0100 commented answer SAGE 8.1, cannot import python modules from notebook

is it 'bad practice' to try to use the same python environment?

2018-03-05 07:32:11 +0100 received badge  Student (source)
2018-03-01 11:53:15 +0100 asked a question SAGE 8.1, cannot import python modules from notebook

I'm running into trouble trying to setup SAGE 8.1. What happened is the following. I'm working in Linux Ubuntu 16.4. I installed SAGE 7.5.1 from command-line. Then I installed SAGE 8.1 from pre-built binaries. I deleted the old sage version and now when I run the command sage, it tries to find SAGE 7.5.1 and fails. I already ran:

ln -s /SageMath8.1/sage /usr/local/bin/sage

And nothing changed. Even though I can run SAGE 8.1 with:

/SageMath8.1/.sage

But once there I cannot import python modules:

>>> import pandas as pd
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-17-af55e7023913> in <module>()
----> 1 import pandas as pd

ImportError: No module named pandas

I guess there's a problem with paths, but I don't know how to solve it. Any help?