Python Forum
"ModuleNotFoundError: No module named '_tkinter' in Python 3.8 Alfa 0
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"ModuleNotFoundError: No module named '_tkinter' in Python 3.8 Alfa 0
#1
I have installed Python 3.9 alfa 0 from spurce code
But I got this error message:

Error:
programmer@crea:~/github/cpython$ python3.8 Python 3.8.0a0 (heads/master:a323cdcb33, Oct 21 2018, 18:23:54) [GCC 7.3.0] 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.8/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 compiled this parameters and
./configure --with-tcltk-includes='-I/opt/ActiveTcl-8.6/include' --with-tcltk-libs='-L/opt/ActiveTcl-8.6/lib/' --with-pydebug

then

make
make test
sudo make install
Reply
#2
3.9? current release is 3.7.0
so you are using an unstable version
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FIXED] User-defined module: ModuleNotFoundError error in VSCode but not in PyCharm epoxy 5 11,873 Jun-01-2021, 02:16 AM
Last Post: deanhystad
  [Tkinter] _tkinter.TclError: can't invoke "destroy" command: application has been destroyed knoxvilles_joker 6 15,278 Apr-25-2021, 08:41 PM
Last Post: knoxvilles_joker
  [Tkinter] _tkinter.TclError: bitmap "Icon.gif" not defined djwilson0495 2 12,864 Aug-05-2020, 02:27 PM
Last Post: wuf
  [PyQt] ModuleNotFoundError: No module named 'PyQt5' matklt 2 16,591 Jun-02-2020, 07:05 AM
Last Post: Knight18
  [Tkinter] _tkinter.TclError: image "pyimage2" doesn't exist Killdoz 1 10,520 May-30-2020, 09:48 AM
Last Post: menator01
  [WxPython] Linux: No module named 'wx' PeterLinux 23 15,449 Apr-02-2020, 12:50 PM
Last Post: PeterLinux
  AttributeError: '_tkinter.tkapp' object has no attribute 'place_forget' edphilpot 5 9,110 Dec-20-2019, 09:52 PM
Last Post: joe_momma
  [Kivy] ModuleNotFoundError: No module named 'kivy' Exsul 7 30,065 Mar-30-2019, 12:58 AM
Last Post: Exsul
  PyGtk3, No Module Named gi, on python3.5 on Windows harun2525 8 34,332 May-19-2017, 01:30 PM
Last Post: snippsat
  [Tkinter] How to find what causing AttributeError: '_tkinter.tkapp' ? darktitan 8 39,888 Sep-18-2016, 11:06 AM
Last Post: Yoriz

Forum Jump:

User Panel Messages

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