Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No module named 'Tkinter'
#1
I'm a beginner, and from my first steps, I have a strange problem. No matter what I have done (google it, set a virtual environment, reinstalling the language several times, installing deferent versions of the language) when I'm trying to give the code:
from future.moves import Tkinter as tk
window = tk.tk()
# to rename the title of the window
window.title("GUI")
# pack is used to show the object in the window
label = tk.label(window, text = "Welcome to DataCamp's Tutorial on Tkinter!").pack()
It gives me the following error:
Error:
Traceback (most recent call last): File "D:/Applications/Python 3.7.2/Scripts/Modules-and-Functions-in-Python-Introduction-to-Tkinter-Source-code/sowtest.py", line 1, in <module> from future.moves import Tkinter as tk File "C:\Users\Αλέκος Βαγιώνης\venv\python 3.7\lib\site-packages\future\moves\tkinter\__init__.py", line 27, in <module> from Tkinter import * ModuleNotFoundError: No module named 'Tkinter' Process finished with exit code 1
All that, after I have tried with pip in the CMD to install the module.
Though it is included with Python (as I know)
I am running a Windows 10 tablet and I have the 3.7.3 version of Python.
Reply


Messages In This Thread
No module named 'Tkinter' - by All_ex_Under - Jun-30-2020, 07:57 AM
RE: No module named 'Tkinter' - by jdos - Jun-30-2020, 08:06 AM
RE: No module named 'Tkinter' - by pyzyx3qwerty - Jun-30-2020, 09:12 AM
RE: No module named 'Tkinter' - by All_ex_Under - Jun-30-2020, 01:42 PM
RE: No module named 'Tkinter' - by Malt - Jun-30-2020, 02:02 PM
RE: No module named 'Tkinter' - by Marbelous - Jun-30-2020, 02:11 PM
RE: No module named 'Tkinter' - by and2handles - Jun-30-2020, 02:33 PM
RE: No module named 'Tkinter' - by snippsat - Jun-30-2020, 02:48 PM
RE: No module named 'Tkinter' - by jdos - Jun-30-2020, 02:48 PM
RE: No module named 'Tkinter' - by All_ex_Under - Jun-30-2020, 03:02 PM
RE: No module named 'Tkinter' - by jdos - Jun-30-2020, 03:05 PM
RE: No module named 'Tkinter' - by All_ex_Under - Jun-30-2020, 04:33 PM
RE: No module named 'Tkinter' - by snippsat - Jun-30-2020, 05:41 PM
RE: No module named 'Tkinter' - by All_ex_Under - Jul-02-2020, 02:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  no module named 'docx' when importing docx MaartenRo 1 1,200 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 24,623 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 3,085 Oct-29-2023, 11:33 PM
Last Post: Serg
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 1,683 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 1,767 Aug-07-2023, 05:32 AM
Last Post: DPaul
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 2 1,539 Jul-10-2023, 03:37 AM
Last Post: Wimpy_Wellington
  How to fix this error: ModuleNotFoundError: No module named 'notears' yaoyao22 2 1,177 Jul-09-2023, 11:24 AM
Last Post: yaoyao22
  Help with pyinstaller "No module named" korenron 9 10,119 Jun-15-2023, 12:20 PM
Last Post: snippsat
  Problem with Pyinstaller. No module named '_tkinter' tonynapoli2309 0 1,112 May-15-2023, 02:38 PM
Last Post: tonynapoli2309
  ModuleNotFoundError: No module named 'omsdk.sdkproto' donvito7 4 2,014 Oct-20-2022, 02:56 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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