New comment by tornaria on void-packages repository https://github.com/void-linux/void-packages/issues/36452#issuecomment-1100857016 Comment: > How can I install it? I'll work on a package. Meanwhile, try the following: ``` $ sage --pip install sagetex ... $ mkdir -p ~/texmf/tex $ cp -ia ~/.sage/local/share/texmf/tex/latex/sagetex/sagetex.sty ~/texmf/tex/ ``` This should place `sagetex.sty` in a user location where latex can find it, and `sagetex.py` in a location where sage can find it. ---- Note that using `pip install sagetex` won't work since it will install in `~/.local/` but sage doesn't look for python modules there but only in `~/.sage/local`. Ideally sage should use python packages installed in `~/.local`. I'm not sure texlive will find files in `~/.local` either (maybe it should).