[Tutor] Tkinter isn't working on Beagle Bone Black

Alan Gauld alan.gauld at yahoo.co.uk
Tue Nov 1 20:35:57 EDT 2022


On 01/11/2022 18:29, Matt Lyon wrote:
> Hello,
> I'm having trouble running tkinter on my beagle bone black. I'm using the
> BBB through debian. I'm using python3 and pip3 for commands.

Caveat: I have no idea what Beagle Bone Black is...

> I downloaded Tkinter with this command
> 
> pip3 install tk

Thats probably not tkinter, its probably Tk the underlying
Tcl/Tk library.

You need something like python3-tk or tkinter or somesuch
(I don't have a Linux box fired up at the moment!)

> Here's the list of libraries on my beaglebone.
> I'm not sure if I need to download another package or if I need to set up
> some link between my BBB and PC.Whenever I try to run a program with
> tkinter I get:
> 
> ModuleNotFoundError: No module named 'tkinter'

You need to install tkinter.
But I'd use the apt tool if possible. Pip is OK but I
always found the software update tools in Linux to be
simpler/safer.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos





More information about the Tutor mailing list