ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 02 Apr 2012 05:08:30 -0500How to install a new module for Sage?http://ask.sagemath.org/question/8843/how-to-install-a-new-module-for-sage/Edit: this is a duplicate of [this question](http://ask.sagemath.org/question/1283/how-to-use-sage-in-terminal).
Dear All,
I am trying to use sage in Mac OSX. I already installed the binary distribution.
The problem is I cannot access the sage environment in terminal and when I
run sage in Mac it opens Sage Notebook. The thing is I am trying to install
PyMVPA and Nibabel in Sage, but as I look into guides I need to go through these
steps according to:
http://sites.google.com/site/neuroinformaticsimageanalysis/home/sage-in-medical-imaging
Install pynifti and pymvpa
-Download latest versions of pynifti and pymvpa
-In the unpacked directories of pynifti and pymvpa and within a Sage environment
(i.e. " $ sage -sh "), install the modules. I.e. " $ make all " and " $ python setup install ".
Check installation by " sage: import pynifti " and " sage: import mvpa "
and when I type "sage -sh" in terminal it opens the sage process and the notebook in Safari!
So I don't know where and when I need to type the rest which are "make all" and "python setup install"
I would be really grateful if someone helps.Sun, 01 Apr 2012 10:35:13 -0500http://ask.sagemath.org/question/8843/how-to-install-a-new-module-for-sage/Answer by kcrisman for <p>Edit: this is a duplicate of <a href="http://ask.sagemath.org/question/1283/how-to-use-sage-in-terminal">this question</a>.</p>
<p>Dear All,</p>
<p>I am trying to use sage in Mac OSX. I already installed the binary distribution.
The problem is I cannot access the sage environment in terminal and when I
run sage in Mac it opens Sage Notebook. The thing is I am trying to install
PyMVPA and Nibabel in Sage, but as I look into guides I need to go through these
steps according to:</p>
<p><a href="http://sites.google.com/site/neuroinformaticsimageanalysis/home/sage-in-medical-imaging">http://sites.google.com/site/neuroinf...</a></p>
<p>Install pynifti and pymvpa
-Download latest versions of pynifti and pymvpa
-In the unpacked directories of pynifti and pymvpa and within a Sage environment
(i.e. " $ sage -sh "), install the modules. I.e. " $ make all " and " $ python setup install ".
Check installation by " sage: import pynifti " and " sage: import mvpa " </p>
<p>and when I type "sage -sh" in terminal it opens the sage process and the notebook in Safari!
So I don't know where and when I need to type the rest which are "make all" and "python setup install"</p>
<p>I would be really grateful if someone helps.</p>
http://ask.sagemath.org/question/8843/how-to-install-a-new-module-for-sage/?answer=13414#post-id-13414Some followup. Can you tell us exactly where your sage is located? (E.g., is it the "app" version or only the terminal version?) `sage -sh` definitely should not start any notebook operations, ever. Where are you running this command from? If you haven't added `sage` to your `PATH` then maybe this is the problem.
You should be `cd`ing into the `SAGE_ROOT` directory, which will depend on your installation, and then the command `./sage -sh` should be correct.Mon, 02 Apr 2012 05:08:30 -0500http://ask.sagemath.org/question/8843/how-to-install-a-new-module-for-sage/?answer=13414#post-id-13414