Ask Your Question

Revision history [back]

If you are launching Sage using a terminal, it should inherit the shell's PATH.

Are you maybe launching Sage as an app?

Setting the PATH for GUI apps can be done, see for example

Another solution might be to include the command from your temporary fix in the init.sage file in the .sage folder in your home folder (this .sage folder should exist; create the file init.sage if necessary).

os.environ["PATH"] += ":/usr/local/bin"

This init.sage is also a good place for putting an instruction such as

%colors Linux

which will improve the syntax highlighting color scheme in the Sage REPL if you work in a terminal with dark background. Indeed the default is

%colors LightBG

which works well for terminals with light background.