How to put Sage in Env Path in Windows
I have installed Sage in windows 10 but for some reasons it's not in path. Running sage in cmd outputs: 'sage' is not recognized as an internal or external command, operable program or batch file.
.
I can't find sage.exe either to manually put it in path. What can I do?
The reason I need to have the path to sage.exe is because I want to use sagetex and it needs sage to be in path.
Currently, I' only able to produce .sout from sage by running sage manually and loading in the file manually. The sage that I'm loading has this full path:
"C:\Program Files\SageMath 8.1\runtime\bin\mintty.exe" -t 'SageMath 8.1 Console' -i sagemath.ico /bin/bash --login -c '/opt/sagemath-8.1/sage'
So I am not able to find sage.exe anywhere to automate this process possibly with latexmkrc.
Can I get a help with this one? I really need to do this somehow
I want to be able to call sage from command line on the sagetex generated file. Can anybody help?
Hi - not sure if you fi figured out a good solution right now but I run in the same problem. IMHO it looks as if there doesn't exist any sage.exe or alike but only a huge bunch of skripts that do run whatever (pathon?) procedures and produce sagemath output.
I found a solution somewhere else (stackexchange) but as the guy who posted wrote it doesn't seem the most effective one:
"... I managed to get it to work good enough for my purposes- I used the following in a .bat file to run sage on a .sagetex.sage file: cmd /c C:\Progra~1\SageMath-8.1\runtime\bin\mintty.exe -t SageTeX /bin/bash --login -c "cd %cygpath% && /opt/sagemath-8.1/sage %2.sagetex.sage | tee %2.sagetex.log" | more
...."
Hope to find a easier way somewhere. - Take care all.