On Sun, Nov 12, 2023 at 6:19 PM Toby Schrager <
toby.s...@gmail.com> wrote:
>
> Within the document I followed the Windows section and then chose to use sage for development. Then it sent me to the Linux section, which had me link github to my computer. Then it sent me to this link,
https://doc.sagemath.org/html/en/installation/source.html#sec-installation-from-sources, which had me download/install a whole bunch of things using sudo apt-get commands. like system packages, C/C++ compliers, Fortran Compliers, python, dvipng, ffmpeg, imagemagick, and LaTeX. There was one thing I forgot to download/install, which was the tcl/tk libraries. After that I uploaded the Sage source code from Github, and made it.
>
> When I say I tried to download the tcl/tk libraries I meant that I did,
>
> sudo apt-get install tk tk-dev
>
> And then the instructions said to rebuild python so I did
>
> sage -f python3
> make
>
OK, I see. Our instructions for tk are old, and do not consider the
case where Sage's python comes from the system.
That's a bug we should fix.
(see
https://github.com/sagemath/sage/issues/36710)
However, if you think that problems you saw with 3D have anything to
do with absence of tk, it's not so.
Sage itself does not use tk at all. This instruction is provided for
people who need to use tk with Sage's Python (tk is tightly integrated
in Python, so it needs a rebuild if this integration is turned on).
> How would I download and install sage from the source, is it the same process I already did? should I remove the first sage before redownloading and reinstalling it?
One way or another, you should revert "sage -f python3". To do this, run
make python3-clean python3-uninstall
followed by
./configure && make
If you want tkinter in your (Sage's) Python, you need to install
system package python3-tk, and this can be done by
sudo apt-get install python3-tk
HTH
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-devel/992b8f46-73fe-4440-a527-f14485935531n%40googlegroups.com.