On 18May2023 12:06, Jack Dangler <tdl...@gmail.com> wrote:
I thought the OP of the tkinter thread currently running may have
needed to install the tkinter package (since I had the same missing
component error message), so I tried to install the package on to my
Ubu laptop -
pip install tkinter
Defaulting to user installation because normal site-packages is not
writeable
ERROR: Could not find a version that satisfies the requirement tkinter
(from versions: none)
ERROR: No matching distribution found for tkinter
Is there an alternate path to installing this?
Usually tkinter ships with Python because it is part of the stdlib.
On some platforms eg Ubuntu Linux the stdlib doesn't come in completely
unless you ask - a lot of stdlib packages are apt things you need to ask
for. On my Ubunut here tkinter comes from python3-tk. So:
$ sudo apt-get install python3-tk
Cheers,
Cameron Simpson <c...@cskk.id.au>
--
https://mail.python.org/mailman/listinfo/python-list