ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 02 Aug 2018 09:31:13 -0500How to put Sage in Env Path in Windowshttps://ask.sagemath.org/question/42035/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.Sun, 15 Apr 2018 19:15:08 -0500https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/Comment by vcf for <p>I have installed Sage in windows 10 but for some reasons it's not in path. Running sage in cmd outputs: <code>'sage' is not recognized as an internal or external command, operable program or batch file.</code>. <br>
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: <br>
<code>"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'</code> <br>
So I am not able to find sage.exe anywhere to automate this process possibly with latexmkrc.</p>
https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=43241#post-id-43241Hi - 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.Thu, 02 Aug 2018 09:31:13 -0500https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=43241#post-id-43241Comment by o6p for <p>I have installed Sage in windows 10 but for some reasons it's not in path. Running sage in cmd outputs: <code>'sage' is not recognized as an internal or external command, operable program or batch file.</code>. <br>
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: <br>
<code>"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'</code> <br>
So I am not able to find sage.exe anywhere to automate this process possibly with latexmkrc.</p>
https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42053#post-id-42053I want to be able to call sage from command line on the sagetex generated file. Can anybody help?Mon, 16 Apr 2018 22:37:06 -0500https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42053#post-id-42053Comment by o6p for <p>I have installed Sage in windows 10 but for some reasons it's not in path. Running sage in cmd outputs: <code>'sage' is not recognized as an internal or external command, operable program or batch file.</code>. <br>
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: <br>
<code>"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'</code> <br>
So I am not able to find sage.exe anywhere to automate this process possibly with latexmkrc.</p>
https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42052#post-id-42052Can I get a help with this one? I really need to do this somehowMon, 16 Apr 2018 18:52:04 -0500https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42052#post-id-42052Answer by o6p for <p>I have installed Sage in windows 10 but for some reasons it's not in path. Running sage in cmd outputs: <code>'sage' is not recognized as an internal or external command, operable program or batch file.</code>. <br>
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: <br>
<code>"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'</code> <br>
So I am not able to find sage.exe anywhere to automate this process possibly with latexmkrc.</p>
https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?answer=42066#post-id-42066Isn't this specific and important enough? Running Sage in WSYL as it's miles better than virtualbox. Yet there's no documentation on how to do it. I'm getting this error now, this is just annoying.
```
Makefile:848: recipe for target 'toolchain-deps' failed
make[2]: *** [toolchain-deps] Error 2
make[2]: Leaving directory '/mnt/c/Users/usr/Downloads/SageMath/build/make'
Makefile:819: recipe for target 'all-toolchain' failed
make[1]: *** [all-toolchain] Error 2
make[1]: Leaving directory '/mnt/c/Users/usr/Downloads/SageMath/build/make'
real 0m12.198s
user 0m0.734s
sys 0m2.109s
***************************************************************
Error building Sage.
```Tue, 17 Apr 2018 10:30:26 -0500https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?answer=42066#post-id-42066Answer by slelievre for <p>I have installed Sage in windows 10 but for some reasons it's not in path. Running sage in cmd outputs: <code>'sage' is not recognized as an internal or external command, operable program or batch file.</code>. <br>
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: <br>
<code>"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'</code> <br>
So I am not able to find sage.exe anywhere to automate this process possibly with latexmkrc.</p>
https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?answer=42056#post-id-42056## SageTeX with Sage-Windows
Have you tried from the Sage shell instead of the Windows command-line?
In a Sage shell, you should be able to `cd` to the appropriate location and run
$ sage yourfile.sagetex.sage
and possibly also (I don't know if Sage-Windows ships LaTeX...):
$ latex yourfile.tex
## SageTeX in the Windows Subsystem for Linux
Another option for you is to install the Windows Subsystem for Linux
(in Windows 10's advanced user preferences), and then you can have
Ubuntu running inside of Windows, and you can
$ sudo apt install sagemath-jupyter
$ sudo apt install latex-full
and you can use all the power of Linux inside Windows.Tue, 17 Apr 2018 01:47:21 -0500https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?answer=42056#post-id-42056Comment by o6p for <h2>SageTeX with Sage-Windows</h2>
<p>Have you tried from the Sage shell instead of the Windows command-line?</p>
<p>In a Sage shell, you should be able to <code>cd</code> to the appropriate location and run</p>
<pre><code>$ sage yourfile.sagetex.sage
</code></pre>
<p>and possibly also (I don't know if Sage-Windows ships LaTeX...):</p>
<pre><code>$ latex yourfile.tex
</code></pre>
<h2>SageTeX in the Windows Subsystem for Linux</h2>
<p>Another option for you is to install the Windows Subsystem for Linux
(in Windows 10's advanced user preferences), and then you can have
Ubuntu running inside of Windows, and you can</p>
<pre><code>$ sudo apt install sagemath-jupyter
$ sudo apt install latex-full
</code></pre>
<p>and you can use all the power of Linux inside Windows.</p>
https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42057#post-id-42057Sage shell makes it impossible to automate this through latexmkrc or with anything at all. I said it in the post that the only solution I've got is by running sage in shell and load(tex.sage). As noted, this is slow and not the best solution. Why am I not able to find the binary for sage? I thought with Sage8.1 Windows 10 was fully supported.Tue, 17 Apr 2018 02:22:29 -0500https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42057#post-id-42057Comment by o6p for <h2>SageTeX with Sage-Windows</h2>
<p>Have you tried from the Sage shell instead of the Windows command-line?</p>
<p>In a Sage shell, you should be able to <code>cd</code> to the appropriate location and run</p>
<pre><code>$ sage yourfile.sagetex.sage
</code></pre>
<p>and possibly also (I don't know if Sage-Windows ships LaTeX...):</p>
<pre><code>$ latex yourfile.tex
</code></pre>
<h2>SageTeX in the Windows Subsystem for Linux</h2>
<p>Another option for you is to install the Windows Subsystem for Linux
(in Windows 10's advanced user preferences), and then you can have
Ubuntu running inside of Windows, and you can</p>
<pre><code>$ sudo apt install sagemath-jupyter
$ sudo apt install latex-full
</code></pre>
<p>and you can use all the power of Linux inside Windows.</p>
https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42058#post-id-42058- Reading package lists... Done
- Building dependency tree Reading
- state information... Done E: Unable
- to locate package sagemath-jupyter
- Reading package lists... Done
- Building dependency tree Reading
- state information... Done E: Unable
- to locate package latex-full
I stated I could do this using the first method in my post so I'm after the second method only. I'm getting these messages in my WSYL bash terminal.
Also, trying to type sage in WSYL doesnt work either:
No command 'sage' found, did you mean:
Command 'save' from package 'atfs' (universe)
Command 'page' from package 'tcllib' (universe)
Command 'osage' from package 'graphviz' (main)
sage: command not foundTue, 17 Apr 2018 07:08:17 -0500https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42058#post-id-42058Comment by o6p for <h2>SageTeX with Sage-Windows</h2>
<p>Have you tried from the Sage shell instead of the Windows command-line?</p>
<p>In a Sage shell, you should be able to <code>cd</code> to the appropriate location and run</p>
<pre><code>$ sage yourfile.sagetex.sage
</code></pre>
<p>and possibly also (I don't know if Sage-Windows ships LaTeX...):</p>
<pre><code>$ latex yourfile.tex
</code></pre>
<h2>SageTeX in the Windows Subsystem for Linux</h2>
<p>Another option for you is to install the Windows Subsystem for Linux
(in Windows 10's advanced user preferences), and then you can have
Ubuntu running inside of Windows, and you can</p>
<pre><code>$ sudo apt install sagemath-jupyter
$ sudo apt install latex-full
</code></pre>
<p>and you can use all the power of Linux inside Windows.</p>
https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42060#post-id-42060I think current documentation is *horrible*. I'm trying to install linux binaries with WSYL bash now, but after extracting .tar and cd'ing there and running make i'm getting this error:
/mnt/c/MinGW/bin/aclocal: /mnt/c/MinGW/bin/aclocal-1.11: /bin/perl: bad interpreter: No such file or directory
Why is this so hard seriously and why are there no guides at all?Tue, 17 Apr 2018 10:14:56 -0500https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42060#post-id-42060Comment by slelievre for <h2>SageTeX with Sage-Windows</h2>
<p>Have you tried from the Sage shell instead of the Windows command-line?</p>
<p>In a Sage shell, you should be able to <code>cd</code> to the appropriate location and run</p>
<pre><code>$ sage yourfile.sagetex.sage
</code></pre>
<p>and possibly also (I don't know if Sage-Windows ships LaTeX...):</p>
<pre><code>$ latex yourfile.tex
</code></pre>
<h2>SageTeX in the Windows Subsystem for Linux</h2>
<p>Another option for you is to install the Windows Subsystem for Linux
(in Windows 10's advanced user preferences), and then you can have
Ubuntu running inside of Windows, and you can</p>
<pre><code>$ sudo apt install sagemath-jupyter
$ sudo apt install latex-full
</code></pre>
<p>and you can use all the power of Linux inside Windows.</p>
https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42064#post-id-42064One way to improve the documentation is to point to specific things that could be improved.Tue, 17 Apr 2018 10:23:06 -0500https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42064#post-id-42064Comment by slelievre for <h2>SageTeX with Sage-Windows</h2>
<p>Have you tried from the Sage shell instead of the Windows command-line?</p>
<p>In a Sage shell, you should be able to <code>cd</code> to the appropriate location and run</p>
<pre><code>$ sage yourfile.sagetex.sage
</code></pre>
<p>and possibly also (I don't know if Sage-Windows ships LaTeX...):</p>
<pre><code>$ latex yourfile.tex
</code></pre>
<h2>SageTeX in the Windows Subsystem for Linux</h2>
<p>Another option for you is to install the Windows Subsystem for Linux
(in Windows 10's advanced user preferences), and then you can have
Ubuntu running inside of Windows, and you can</p>
<pre><code>$ sudo apt install sagemath-jupyter
$ sudo apt install latex-full
</code></pre>
<p>and you can use all the power of Linux inside Windows.</p>
https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42067#post-id-42067Do I understand correctly that you installed the Windows subsystem for Linux, and then Ubuntu in it?
Which version of Ubuntu does that get you? Ubuntu 16.04? Ubuntu 17.10?
I would recommend running the following in a shell session.
sudo apt install binutils gcc g++ gfortran make m4 perl tar git \
openssl libssl-dev texlive texlive-latex-extras dvipng ffmpeg \
imagemagick tk tk-dev libcurl-dev perl-tk
Then install SageMath in one of the following two ways:
- install Linux binaries for Ubuntu, from [https://www.sagemath.org/download-linux.html](https://www.sagemath.org/download-linux.html)
- install the Debian package `sagemath-jupyter` by running `sudo apt install sagemath-jupyter`
Not sure building from source works in the Windows Subsystem for Linux.Tue, 17 Apr 2018 10:30:28 -0500https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42067#post-id-42067Comment by o6p for <h2>SageTeX with Sage-Windows</h2>
<p>Have you tried from the Sage shell instead of the Windows command-line?</p>
<p>In a Sage shell, you should be able to <code>cd</code> to the appropriate location and run</p>
<pre><code>$ sage yourfile.sagetex.sage
</code></pre>
<p>and possibly also (I don't know if Sage-Windows ships LaTeX...):</p>
<pre><code>$ latex yourfile.tex
</code></pre>
<h2>SageTeX in the Windows Subsystem for Linux</h2>
<p>Another option for you is to install the Windows Subsystem for Linux
(in Windows 10's advanced user preferences), and then you can have
Ubuntu running inside of Windows, and you can</p>
<pre><code>$ sudo apt install sagemath-jupyter
$ sudo apt install latex-full
</code></pre>
<p>and you can use all the power of Linux inside Windows.</p>
https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42068#post-id-42068Isn't this specific and important enough? Running Sage in WSYL as it's miles better than virtualbox. Yet there's no documentation on how to do it. I'm getting this error now, this is just annoying.
Makefile:848: recipe for target 'toolchain-deps' failed
make[2]: *** [toolchain-deps] Error 2
make[2]: Leaving directory '/mnt/c/Users/usr/Downloads/SageMath/build/make'
Makefile:819: recipe for target 'all-toolchain' failed
make[1]: *** [all-toolchain] Error 2
make[1]: Leaving directory '/mnt/c/Users/usr/Downloads/SageMath/build/make'
real 0m12.198s
user 0m0.734s
sys 0m2.109s
***************************************************************
Error building Sage.Tue, 17 Apr 2018 10:31:06 -0500https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42068#post-id-42068Comment by o6p for <h2>SageTeX with Sage-Windows</h2>
<p>Have you tried from the Sage shell instead of the Windows command-line?</p>
<p>In a Sage shell, you should be able to <code>cd</code> to the appropriate location and run</p>
<pre><code>$ sage yourfile.sagetex.sage
</code></pre>
<p>and possibly also (I don't know if Sage-Windows ships LaTeX...):</p>
<pre><code>$ latex yourfile.tex
</code></pre>
<h2>SageTeX in the Windows Subsystem for Linux</h2>
<p>Another option for you is to install the Windows Subsystem for Linux
(in Windows 10's advanced user preferences), and then you can have
Ubuntu running inside of Windows, and you can</p>
<pre><code>$ sudo apt install sagemath-jupyter
$ sudo apt install latex-full
</code></pre>
<p>and you can use all the power of Linux inside Windows.</p>
https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42069#post-id-42069Makefile:2143: recipe for target '/mnt/c/Users/usr/Downloads/SageMath/local/var/lib/sage/installed/mpc-1.0.3.p0' failed
I guess this is the important part.Tue, 17 Apr 2018 10:32:22 -0500https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42069#post-id-42069Comment by o6p for <h2>SageTeX with Sage-Windows</h2>
<p>Have you tried from the Sage shell instead of the Windows command-line?</p>
<p>In a Sage shell, you should be able to <code>cd</code> to the appropriate location and run</p>
<pre><code>$ sage yourfile.sagetex.sage
</code></pre>
<p>and possibly also (I don't know if Sage-Windows ships LaTeX...):</p>
<pre><code>$ latex yourfile.tex
</code></pre>
<h2>SageTeX in the Windows Subsystem for Linux</h2>
<p>Another option for you is to install the Windows Subsystem for Linux
(in Windows 10's advanced user preferences), and then you can have
Ubuntu running inside of Windows, and you can</p>
<pre><code>$ sudo apt install sagemath-jupyter
$ sudo apt install latex-full
</code></pre>
<p>and you can use all the power of Linux inside Windows.</p>
https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42071#post-id-42071building from source fails to compile mpc-1.0.3.p0
sudo apt install sagemath-jupyter fails too:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sagemath-jupyterTue, 17 Apr 2018 10:47:30 -0500https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42071#post-id-42071Comment by slelievre for <h2>SageTeX with Sage-Windows</h2>
<p>Have you tried from the Sage shell instead of the Windows command-line?</p>
<p>In a Sage shell, you should be able to <code>cd</code> to the appropriate location and run</p>
<pre><code>$ sage yourfile.sagetex.sage
</code></pre>
<p>and possibly also (I don't know if Sage-Windows ships LaTeX...):</p>
<pre><code>$ latex yourfile.tex
</code></pre>
<h2>SageTeX in the Windows Subsystem for Linux</h2>
<p>Another option for you is to install the Windows Subsystem for Linux
(in Windows 10's advanced user preferences), and then you can have
Ubuntu running inside of Windows, and you can</p>
<pre><code>$ sudo apt install sagemath-jupyter
$ sudo apt install latex-full
</code></pre>
<p>and you can use all the power of Linux inside Windows.</p>
https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42078#post-id-42078What exact version of Windows is this? What exact Linux distribution was installed in the Windows Subsystem for Linux? Did installing the corresponding Linux binary succeed?Tue, 17 Apr 2018 11:36:41 -0500https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42078#post-id-42078Comment by slelievre for <h2>SageTeX with Sage-Windows</h2>
<p>Have you tried from the Sage shell instead of the Windows command-line?</p>
<p>In a Sage shell, you should be able to <code>cd</code> to the appropriate location and run</p>
<pre><code>$ sage yourfile.sagetex.sage
</code></pre>
<p>and possibly also (I don't know if Sage-Windows ships LaTeX...):</p>
<pre><code>$ latex yourfile.tex
</code></pre>
<h2>SageTeX in the Windows Subsystem for Linux</h2>
<p>Another option for you is to install the Windows Subsystem for Linux
(in Windows 10's advanced user preferences), and then you can have
Ubuntu running inside of Windows, and you can</p>
<pre><code>$ sudo apt install sagemath-jupyter
$ sudo apt install latex-full
</code></pre>
<p>and you can use all the power of Linux inside Windows.</p>
https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42079#post-id-42079One could be more specific than "I think current documentation is *horrible*",
for example by giving links to specific pages of documentation that could be
improved, and, if possible, suggesting what specifically could be improved there.Tue, 17 Apr 2018 11:43:35 -0500https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42079#post-id-42079Comment by slelievre for <h2>SageTeX with Sage-Windows</h2>
<p>Have you tried from the Sage shell instead of the Windows command-line?</p>
<p>In a Sage shell, you should be able to <code>cd</code> to the appropriate location and run</p>
<pre><code>$ sage yourfile.sagetex.sage
</code></pre>
<p>and possibly also (I don't know if Sage-Windows ships LaTeX...):</p>
<pre><code>$ latex yourfile.tex
</code></pre>
<h2>SageTeX in the Windows Subsystem for Linux</h2>
<p>Another option for you is to install the Windows Subsystem for Linux
(in Windows 10's advanced user preferences), and then you can have
Ubuntu running inside of Windows, and you can</p>
<pre><code>$ sudo apt install sagemath-jupyter
$ sudo apt install latex-full
</code></pre>
<p>and you can use all the power of Linux inside Windows.</p>
https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42080#post-id-42080One list of ways to use Sage under Windows is at the Ask Sage question:
- [https://ask.sagemath.org/question/34350/installing-on-windows-10/](https://ask.sagemath.org/question/34350/installing-on-windows-10/)
Would a wiki page with that list improve the situation?
Another source of information is the "Distribution" page on the Sage wiki:
- [https://wiki.sagemath.org/Distribution](https://wiki.sagemath.org/Distribution)
It also points to other solutions, such as using a Docker image.
Note that when searching the web for [ sagemath "windows subsystem for linux" ],
the Ask Sage question and Sage wiki page above are in the top answers.
- [https://duckduckgo.com/?q=sagemath+"windows+subsystem+for+linux"](https://duckduckgo.com/?q=sagemath+"windows+subsystem+for+linux")Tue, 17 Apr 2018 11:45:15 -0500https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42080#post-id-42080Comment by slelievre for <h2>SageTeX with Sage-Windows</h2>
<p>Have you tried from the Sage shell instead of the Windows command-line?</p>
<p>In a Sage shell, you should be able to <code>cd</code> to the appropriate location and run</p>
<pre><code>$ sage yourfile.sagetex.sage
</code></pre>
<p>and possibly also (I don't know if Sage-Windows ships LaTeX...):</p>
<pre><code>$ latex yourfile.tex
</code></pre>
<h2>SageTeX in the Windows Subsystem for Linux</h2>
<p>Another option for you is to install the Windows Subsystem for Linux
(in Windows 10's advanced user preferences), and then you can have
Ubuntu running inside of Windows, and you can</p>
<pre><code>$ sudo apt install sagemath-jupyter
$ sudo apt install latex-full
</code></pre>
<p>and you can use all the power of Linux inside Windows.</p>
https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42083#post-id-42083If you install binaries, you do not need to run `make`.
You can add a symbolic link to the Sage executable by running
sudo ln -s /path/to/sagedir/sage /usr/local/bin
in a terminal (replacing `/path/to/sagedir` by the actual path to the directory which contains Sage),
or `cd` to the Sage directory and type
sudo ln -s `pwd`/sage /usr/local/bin
Then you will be able to run Sage by typing `sage` in a terminal.Tue, 17 Apr 2018 17:21:26 -0500https://ask.sagemath.org/question/42035/how-to-put-sage-in-env-path-in-windows/?comment=42083#post-id-42083