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
  [Tkinter] _tkinter.TclError: bitmap "Icon.gif" not defined djwilson0495 2 1,240 Aug-05-2020, 02:27 PM
Last Post: wuf
  [PyQt] ModuleNotFoundError: No module named 'PyQt5' matklt 2 3,178 Jun-02-2020, 07:05 AM
Last Post: Knight18
  [Tkinter] _tkinter.TclError: image "pyimage2" doesn't exist Killdoz 1 1,793 May-30-2020, 09:48 AM
Last Post: menator01
  [WxPython] Linux: No module named 'wx' PeterLinux 23 3,410 Apr-02-2020, 12:50 PM
Last Post: PeterLinux
  AttributeError: '_tkinter.tkapp' object has no attribute 'place_forget' edphilpot 5 2,022 Dec-20-2019, 09:52 PM
Last Post: joe_momma
  [Kivy] ModuleNotFoundError: No module named 'kivy' Exsul 7 15,955 Mar-30-2019, 12:58 AM
Last Post: Exsul
  PyGtk3, No Module Named gi, on python3.5 on Windows harun2525 8 25,385 May-19-2017, 01:30 PM
Last Post: snippsat
  [Tkinter] How to find what causing AttributeError: '_tkinter.tkapp' ? darktitan 8 21,805 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