Python Forum
ModuleNotFoundError: No module named 'tkcalendar', Thonny, Windows 10
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ModuleNotFoundError: No module named 'tkcalendar', Thonny, Windows 10
#1
I'm trying to learn to use the tkCalendar but getting a "ModuleNotFoundError: No module named 'tkcalendar'".
I have installed it properly I believe, using pip, but when I try to verify it entering >tkcalendar in the command prompt, the response is:

'tkcalendar' is not recognized as an internal or external command,
operable program or batch file.

I'm reading a lot of vague solutions for the environmental variable addition which doesn't match the Environment Variables windows I see in Win 10 Pro.
Everything else imaginable I have done with python and tkinter has worked perfectly without hesitation, until this.

Could the Environment Variable be the problem for this one module?

my test code is:

import tkinter as tk import tkcalendar from tkcalendar import Calendar root = tk.Tk() cal = Calendar(root, selectmode="day", date_pattern="yyyy-mm-dd") cal.pack(pady=20) def get_date(): selected_date = cal.get_date() print("Selected Date:", selected_date) button = tk.Button(root, text="Get Date", command=get_date) button.pack(pady=10) root.mainloop()
Reply
#2
Does it show up if you type pip list in the shell? Are you using a virtual environment?
Reply
#3
Not using a virtual environment.

pip list result:

C:\Users\Owner>pip list
Package Version
---------- -------
babel 2.17.0
pip 24.3.1
tkcalendar 1.6.1
Reply
#4
Depending on how you installed Thonny, it may be using its integrated Python interpreter. Try to install tkcalendar from Thonny's Tools menu.
« We can solve any problem by introducing an extra level of indirection »
Reply
#5
(Apr-06-2025, 07:33 PM)Gribouillis Wrote: Depending on how you installed Thonny, it may be using its integrated Python interpreter. Try to install tkcalendar from Thonny's Tools menu.

Thanks Gribouillis!
That fixed it. Clap
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Using moviepy fails due to "ModuleNotFoundError: No module named 'pip._internal.utils sheepog 2 2,258 May-28-2025, 06:57 PM
Last Post: sheepog
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 3 5,023 May-10-2025, 05:56 PM
Last Post: Wimpy_Wellington
  No module named 'importlib.metadata' EdVS 3 3,044 Jan-30-2025, 09:55 AM
Last Post: Larz60+
  Python 3.13(Windows) does not have the latest module OS phillip_from_oz 1 1,865 Dec-13-2024, 04:35 AM
Last Post: deanhystad
  ModuleNotFoundError: No module named 'athena_read' raman 2 2,303 Jul-01-2024, 07:52 AM
Last Post: Gribouillis
  no module named 'docx' when importing docx MaartenRo 1 8,914 Dec-31-2023, 11:21 AM
Last Post: deanhystad
Question Sonar Code in Thonny for Pi Pico iansmiler 1 1,597 Nov-22-2023, 12:27 PM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 34,913 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 15,440 Oct-29-2023, 11:33 PM
Last Post: Serg
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 7,018 Oct-04-2023, 02:43 PM
Last Post: mandaxyz

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020
This forum uses Lukasz Tkacz MyBB addons.
Forum use Krzysztof "Supryk" Supryczynski addons.