help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Installing the symbolic package


From: Samuel Dupree
Subject: Re: Installing the symbolic package
Date: Sun, 23 Aug 2015 01:01:17 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

Mike Miller,

I've compared the PATH and which python my terminal.app is seeing versus what Octave_gui.app is seeing. Octave_gui.app is picking up the wrong PATH and the wrong python. The question that comes to my mind is how is Octave_gui.app picking up the PATH and python?

Sam Dupree.



On 08/22/2015 22:24:37, Mike Miller wrote:
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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]