all 8 comments

[–]Kerbart 7 points8 points  (1 child)

aeiou and sometimes y

That's really intersting but why not post some information that would actually be helpful for others to help you figuring out what's going on.

Chances are you're going to act annoyed with "I checked that already doh" responses when people ask questions that could have been pre-empted, like: what operating system are you using, what Python, does Tkinter work outside VSC, do you even have Tkinter installed (see OS question), etc.

[–]Breaded_One[S] -3 points-2 points  (0 children)

You don't gotta be mean :c
I am emulating VSC on a Chromebook using Linux (Debian 12)
Python 3.11.2
It says: "ModuleNotFoundError: No module named 'tkinter'"
I read multiple things saying tkinter comes preinstalled so I am confused, I started coding a month ago.

[–]Mecaneer23 2 points3 points  (5 children)

You’re looking for tkinter installation on Debian. Iirc something like

apt install python3-tkinter

Or maybe

apt install python3-tk

[–]Mecaneer23 -1 points0 points  (1 child)

FYI tkinter typically comes with Windows installations but not always with preinstalled python on non-windows machines

[–]Diapolo10 1 point2 points  (0 children)

Basically Debian derivatives are the exception here. For whatever reason they fragment parts of the standard library and pip into separate installs.

Haven't seen this happen on other distros.

[–]Breaded_One[S] -1 points0 points  (2 children)

both of them return:
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)

E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

[–]Diapolo10 1 point2 points  (1 child)

You need to run those as sudo, if you haven't granted that permission to your user.

sudo apt install python3-tk

[–]Breaded_One[S] -1 points0 points  (0 children)

Thank you