On Sat, Aug 22, 2015 at 15:46:41 -0400, Samuel Dupree wrote:
Now Octave for whatever reason is getting python from /usr/bin/python and I
need to somehow get Octave to get python from /Users/user/anaconda. So the
question is how does one point Octave to /Users/user/anaconda to get python?
This probably simply depends on the PATH present in Octave's
environment. Is it different from the PATH in your shell? There are many
reasons why that might be. Compare the shell with Octave:
$ echo $PATH
$ which python
vs
>>> getenv PATH
>>> system ("which python");
You may need to arrange for Octave to inherit PATH from your shell
environment if it's not the same for whatever reason. Perhaps when you
open a terminal your shell initializes its environment differently from
however you are launching Octave?
When I've used Anaconda, I've installed it in $HOME/anaconda and added
$HOME/anaconda/bin to PATH in my ~/.profile. This ensures that it's in
my environment when I log in on Linux, not just in the shell in a
terminal.