Tiny Core Extensions > TCE Talk

How do I install tkinter?

(1/2) > >>

saladin:
I'm using Pure 64, and I have Python 3.7.6 installed. tkinter is supposed to come installed with python by default, so I can't seem to install it via pip, but I'm also not seeing it in the TCZs. Am I missing something?

Rich:
Hi saladin
You did not bother to mention which version of Tinycore you are running. Searching
through the python .info files it appears you are referring to TC10.


--- Quote from: saladin on January 16, 2023, 11:50:45 AM --- ... tkinter is supposed to come installed with python by default, ... but I'm also not seeing it in the TCZs. ...
--- End quote ---
Is this (TK interface to the tcl tool command language) what you are looking for:
http://tinycorelinux.net/10.x/x86_64/tcz/tk.tcz.info
http://tinycorelinux.net/10.x/x86_64/tcz/tk8.6.tcz.info

saladin:
I installed both of those, but when I run


--- Code: ---python3 -m tkinter
--- End code ---

it tells me "No module named '_tkinter'"

When I try to import tkinter into a python script, I'm getting the same message.

If this is tkinter, maybe it's installing for Python 2 instead of Python 3?

Rich:
Hi saladin
It looks like you might need something called  python3-tk  which is not
in the repository and supposedly pip won't work.
Found here:
https://askubuntu.com/questions/815874/importerror-no-named-tkinter-please-install-the-python3-tk-package
https://stackoverflow.com/questions/6084416/tkinter-module-not-found-on-ubuntu

This may be of some help:
https://stackoverflow.com/questions/25905540/importerror-no-module-named-tkinter

I also saw some mentions of  Tkinter  was renamed to tkinter.

Rich:
Hi saladin
Did you try:

--- Code: ---pip install tk
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version