ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 28 Feb 2018 20:34:14 +0100SAGE 8.1, cannot import python modules from notebookhttps://ask.sagemath.org/question/41315/sage-81-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?
daranhaWed, 28 Feb 2018 20:34:14 +0100https://ask.sagemath.org/question/41315/