Ask Your Question

daranha's profile - activity

2019-05-28 02:25:20 -0500 received badge  Notable Question (source)
2019-02-17 02:26:12 -0500 received badge  Popular Question (source)
2018-03-05 12:16:45 -0500 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 11:59:53 -0500 received badge  Supporter (source)
2018-03-05 11:59:47 -0500 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 00:32:11 -0500 received badge  Student (source)
2018-03-01 04:53:15 -0500 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?