Python Forum
Installing/configuring Tkinter on Linux Mint 18?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing/configuring Tkinter on Linux Mint 18?
#1
I'm having trouble getting TKinter working.

Python 3.6.3 (default, Dec 13 2017, 17:56:50) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/tkinter/__init__.py", line 36, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
>>> 
I installed python3-tk and its dependencies.

Quote: $ cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=18.2
DISTRIB_CODENAME=sonya
DISTRIB_DESCRIPTION="Linux Mint 18.2 Sonya"

Any thoughts?

Thanks
Reply


Messages In This Thread
Installing/configuring Tkinter on Linux Mint 18? - by mpd - Jan-02-2018, 12:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Window geometry appears different on Win and Linux steve_shambles 6 7,240 Nov-29-2019, 12:30 AM
Last Post: steve_shambles
  [WxPython] [SOLVED]Installing Phoenix in python3 on Linux Barrowman 2 5,282 Jul-25-2017, 05:44 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020