Aug-23-2020, 02:52 AM
re: import tkinter as tkinter ImportError: No module named tkinter
apt list | grep python3-tk
and then
python3 -m tkinter
ie
bill@mx:~
$ apt list | grep python3-tk
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
python3-tk/oldstable,now 3.5.3-1 amd64 [installed]
python3-tk-dbg/oldstable 3.5.3-1 amd64
python3-tksnack/oldstable,oldstable 2.2.10.20090623-dfsg-6 all
bill@mx:~
$ python3 -m tkinter
bill@mx:~
why does this show tkinter to be installed yet a script that includes import tkinter etc fails?
thanks
apt list | grep python3-tk
and then
python3 -m tkinter
ie
bill@mx:~
$ apt list | grep python3-tk
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
python3-tk/oldstable,now 3.5.3-1 amd64 [installed]
python3-tk-dbg/oldstable 3.5.3-1 amd64
python3-tksnack/oldstable,oldstable 2.2.10.20090623-dfsg-6 all
bill@mx:~
$ python3 -m tkinter
bill@mx:~
why does this show tkinter to be installed yet a script that includes import tkinter etc fails?
thanks