Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No module named 'Tkinter'
#11
Oh almost forgot, it should help you to install the 32bit version. When freezing a program to exe, the 32bit will work for both 32 and 64 bit versions of windows, while the 64bit version will export 64bit exe thus it will not be compatible with 32bit Windows. (Sorry if it's a bit confusing)
Reply
#12
Even when I did all the steps CMD is giving me the answer: "C:\Users\Αλέκος Βαγιώνης\venv\Scripts>pip install tkinter
No Python at D:\Applications\Python 3.7.2\python.exe"
Reply
#13
(Jun-30-2020, 04:33 PM)All_ex_Under Wrote: Even when I did all the steps CMD is giving me the answer: "C:\Users\Αλέκος Βαγιώνης\venv\Scripts>pip install tkinter
No Python at D:\Applications\Python 3.7.2\python.exe"
You shall not install tkinter,on Windows Python versions it's always build in.
Now you are running from venv virtual environment,do you know how this works?

I think you should look at Python3.8 (3.6-3.7) and pip installation under Windows.
The basic command that most work in cmd if use Python 3.7:
# Test python
C:\>python -V
Python 3.7.2

# Test pip
C:\>pip -V
pip 20.0.2 from c:\python37\lib\site-packages\pip (python 3.7)

# Test tkinter
C:\>python
Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter
>>>
>>> print(tkinter.__doc__[:200])
Wrapper functions for Tcl/Tk.

Tkinter provides classes which allow the display, positioning and
control of widgets. Toplevel widgets are Tk and Toplevel. Other
widgets are Frame, Label, Entry, Text,
>>> exit()

C:\>
Reply
#14
Ive managed it to accept the "tkinter" module, the problem seems to be that it is running on a case sensitive mismatch which is produced by the filesystem, Im starting a thread on it
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ModuleNotFoundError: No module named 'tkcalendar', Thonny, Windows 10 Edward_ 4 904 Apr-06-2025, 07:56 PM
Last Post: Edward_
  No module named 'importlib.metadata' EdVS 3 1,126 Jan-30-2025, 09:55 AM
Last Post: Larz60+
  Help on tkinter module upendra 8 2,034 Nov-10-2024, 03:14 PM
Last Post: menator01
  ModuleNotFoundError: No module named 'athena_read' raman 2 1,337 Jul-01-2024, 07:52 AM
Last Post: Gribouillis
  no module named 'docx' when importing docx MaartenRo 1 5,782 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 31,364 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 10,315 Oct-29-2023, 11:33 PM
Last Post: Serg
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 4,584 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 3,941 Aug-07-2023, 05:32 AM
Last Post: DPaul
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 2 3,288 Jul-10-2023, 03:37 AM
Last Post: Wimpy_Wellington

Forum Jump:

User Panel Messages

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