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
  no module named 'docx' when importing docx MaartenRo 1 898 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 23,826 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 2,606 Oct-29-2023, 11:33 PM
Last Post: Serg
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 1,467 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 1,530 Aug-07-2023, 05:32 AM
Last Post: DPaul
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 2 1,350 Jul-10-2023, 03:37 AM
Last Post: Wimpy_Wellington
  How to fix this error: ModuleNotFoundError: No module named 'notears' yaoyao22 2 1,050 Jul-09-2023, 11:24 AM
Last Post: yaoyao22
  Help with pyinstaller "No module named" korenron 9 9,152 Jun-15-2023, 12:20 PM
Last Post: snippsat
  Problem with Pyinstaller. No module named '_tkinter' tonynapoli2309 0 1,021 May-15-2023, 02:38 PM
Last Post: tonynapoli2309
  ModuleNotFoundError: No module named 'omsdk.sdkproto' donvito7 4 1,873 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